blob: 0157ca2128b079d0dcc5e44d7036a215ac54851e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Do not fix code style here!
func test():
# The following lines are equivalent:
var _integer: int = 1
var _integer2 : int = 1
var _inferred := 1
var _inferred2 : = 1
# Type inference is automatic for constants.
const _INTEGER = 1
const _INTEGER_REDUNDANT_TYPED : int = 1
const _INTEGER_REDUNDANT_TYPED2 : int = 1
const _INTEGER_REDUNDANT_INFERRED := 1
const _INTEGER_REDUNDANT_INFERRED2 : = 1
|