1
0
Fork 0
forked from fun/fun

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:
Johannes Findeisen 2025-12-23 20:49:07 +01:00
commit 92aacff71a
41 changed files with 654 additions and 130 deletions

View file

@ -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.
*/