mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Changed dict type syntax to using a colon instead of a comma
This commit is contained in:
@@ -15,7 +15,7 @@ assert w == [int], "defining an array of types failed";
|
||||
assert x == type [int], "re-assigning a type value failed";
|
||||
|
||||
//complex type
|
||||
var complex: type = type [string, [int]];
|
||||
var complex: type = type [string : [int]];
|
||||
var dict: complex = [
|
||||
"first array": [1, 2, 3],
|
||||
"second array": [4, 5, 6],
|
||||
|
||||
Reference in New Issue
Block a user