Change syntax of compound exprs

This commit is contained in:
Krzosa Karol
2022-05-29 23:42:53 +02:00
parent 3f44a533be
commit 802dce749e
7 changed files with 65 additions and 75 deletions

View File

@@ -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]