Change syntax of compound exprs
This commit is contained in:
@@ -22,14 +22,14 @@ bool_null: bool = null
|
||||
//-----------------------------------------------------------------------------
|
||||
// Compound expressions
|
||||
//-----------------------------------------------------------------------------
|
||||
array1: [4]int = {1,2,3,4}
|
||||
array2: [32]int = {1,2,3,4}
|
||||
array3: [32]int = {
|
||||
array1: [4]int = [4]int(1,2,3,4)
|
||||
array2 := [32]int(1,2,3,4)
|
||||
array3 := [32]int(
|
||||
[0] = null,
|
||||
[1] = 1,
|
||||
[2] = 2,
|
||||
[31] = 31,
|
||||
}
|
||||
)
|
||||
array_item := array1[0]
|
||||
array_item_imp: int = array2[2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user