Fixed type variable evaluation, it now occurs at var definition

This commit is contained in:
2022-09-07 14:21:40 +01:00
parent 6511d652f2
commit 6c71a16e3e
3 changed files with 41 additions and 21 deletions

View File

@@ -1,10 +1,15 @@
var t: type = typeas [[int]];
var a: t = [
[1, 2, 3]
];
print a;
print typeof a;
var t: type = typeas [int];
var u: type = typeas [t];
var a: u;
t = typeas [float]; //redefnition
var b: u;
print typeof a; //<[<int>]>
print typeof b; //<[<float>]>