Changed dict type syntax to using a colon instead of a comma

This commit is contained in:
2022-09-04 09:00:55 +01:00
parent d12ad4f60d
commit 36154b25ac
6 changed files with 7 additions and 6 deletions

View File

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