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
|
|
@ -77,3 +77,45 @@ print(typeof(p)) // -> "Class"
|
|||
|
||||
print("")
|
||||
print("=== Done ===")
|
||||
|
||||
/* Expected output:
|
||||
=== Dynamic (untyped) ===
|
||||
Number
|
||||
String
|
||||
|
||||
=== Numbers and integer subtypes ===
|
||||
Sint64
|
||||
42
|
||||
-126
|
||||
4464
|
||||
255
|
||||
0
|
||||
|
||||
=== Strings ===
|
||||
String
|
||||
hello
|
||||
|
||||
=== Nil ===
|
||||
Nil
|
||||
nil
|
||||
|
||||
=== Arrays ===
|
||||
Array
|
||||
3
|
||||
2
|
||||
[1, 2]
|
||||
|
||||
=== Maps ===
|
||||
Map
|
||||
v
|
||||
|
||||
=== Functions ===
|
||||
Function
|
||||
12
|
||||
|
||||
=== Classes and Class-typed variables ===
|
||||
Class
|
||||
|
||||
=== Done ===
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue