All incomplete examples have been updated and some corrections have been made to the parser to make them work. (0.37.17)
This commit is contained in:
parent
37c5ae6f58
commit
92aacff71a
41 changed files with 654 additions and 130 deletions
|
|
@ -70,3 +70,32 @@ print(typeof(nn)) // -> "Nil"
|
|||
|
||||
print("")
|
||||
print("Done. Uncomment lines above to see type errors in action.")
|
||||
|
||||
/* Expected output:
|
||||
== Dynamic variable (untyped) ==
|
||||
Number
|
||||
100
|
||||
String
|
||||
hello
|
||||
|
||||
== Typed variables remain type-stable ==
|
||||
String
|
||||
hello
|
||||
Number
|
||||
0
|
||||
0
|
||||
Sint64
|
||||
456
|
||||
|
||||
== Integer width clamping ==
|
||||
-126
|
||||
56
|
||||
255
|
||||
44
|
||||
|
||||
== Nil-typed variables must stay Nil ==
|
||||
Nil
|
||||
|
||||
Done. Uncomment lines above to see type errors in action.
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue