mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
switched typeof for oftype, switched typeas for astype
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
|
||||
|
||||
var t: type = typeas [int];
|
||||
var u: type = typeas [t];
|
||||
var t: type = astype [int];
|
||||
var u: type = astype [t];
|
||||
|
||||
var a: u;
|
||||
|
||||
t = typeas [float]; //redefnition
|
||||
t = astype [float]; //redefnition
|
||||
|
||||
var b: u;
|
||||
|
||||
print typeof a; //<[<int>]>
|
||||
print typeof b; //<[<float>]>
|
||||
print oftype a; //<[<int>]>
|
||||
print oftype b; //<[<float>]>
|
||||
Reference in New Issue
Block a user