OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 static method testString() → dynamic { | |
6 core::print("a"); | |
7 } | |
8 static method testInt() → dynamic { | |
9 core::print(1); | |
10 } | |
11 static method testBool() → dynamic { | |
12 core::print(true); | |
13 core::print(false); | |
14 } | |
15 static method testDouble() → dynamic { | |
16 core::print(1.0); | |
17 } | |
18 static method testNull() → dynamic { | |
19 core::print(null); | |
20 } | |
21 static method testList() → dynamic { | |
22 core::print(<dynamic>[]); | |
23 core::print(<dynamic>["a", "b"]); | |
24 } | |
25 static method testMap() → dynamic { | |
26 core::print(<dynamic, dynamic>{}); | |
27 core::print(<dynamic, dynamic>{"a": "b"}); | |
28 } | |
29 static method testSymbol() → dynamic { | |
30 core::print(#fisk); | |
31 core::print(#_fisk); | |
32 core::print(#fisk.hest.ko); | |
33 } | |
34 static method main() → dynamic { | |
35 self::testString(); | |
36 self::testInt(); | |
37 self::testBool(); | |
38 self::testDouble(); | |
39 self::testNull(); | |
40 self::testList(); | |
41 self::testMap(); | |
42 self::testSymbol(); | |
43 } | |
OLD | NEW |