| OLD | NEW |
| 1 library; | 1 library; |
| 2 import self as self; | 2 import self as self; |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "package:expect/expect.dart" as exp; | 4 import "package:expect/expect.dart" as exp; |
| 5 | 5 |
| 6 class ImplicitScopeTest extends core::Object { | 6 class ImplicitScopeTest extends core::Object { |
| 7 constructor •() → void | 7 constructor •() → void |
| 8 : super core::Object::•() | 8 : super core::Object::•() |
| 9 ; | 9 ; |
| 10 static method alwaysTrue() → core::bool { | 10 static method alwaysTrue() → core::bool { |
| 11 return 1.+(1).==(2); | 11 return 1.{core::num::+}(1).{core::num::==}(2); |
| 12 } | 12 } |
| 13 static method testMain() → dynamic { | 13 static method testMain() → dynamic { |
| 14 core::String a = "foo"; | 14 core::String a = "foo"; |
| 15 dynamic b; | 15 dynamic b; |
| 16 if(self::ImplicitScopeTest::alwaysTrue()) { | 16 if(self::ImplicitScopeTest::alwaysTrue()) { |
| 17 dynamic a = "bar"; | 17 dynamic a = "bar"; |
| 18 } | 18 } |
| 19 else { | 19 else { |
| 20 dynamic b = a; | 20 dynamic b = a; |
| 21 } | 21 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 dynamic b = "baz"; | 38 dynamic b = "baz"; |
| 39 } | 39 } |
| 40 while ("black".==("white")) | 40 while ("black".==("white")) |
| 41 exp::Expect::equals("foo", a); | 41 exp::Expect::equals("foo", a); |
| 42 exp::Expect::equals(null, b); | 42 exp::Expect::equals(null, b); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 static method main() → dynamic { | 45 static method main() → dynamic { |
| 46 self::ImplicitScopeTest::testMain(); | 46 self::ImplicitScopeTest::testMain(); |
| 47 } | 47 } |
| OLD | NEW |