Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 library test; | |
| 2 import self as self; | |
| 3 import "dart:core" as core; | |
| 4 | |
| 5 static field dynamic h = null; | |
| 6 static method foo((core::Object) → core::int f) → void {} | |
| 7 static method main() → dynamic { | |
| 8 (core::Object) → core::Null f = (core::Object x) → core::Null { | |
| 9 return null; | |
| 10 }; | |
| 11 core::String y = f.call(42); | |
| 12 f = (core::Object x) → core::String => "hello"; | |
| 13 self::foo((core::Object x) → core::Null { | |
| 14 return null; | |
| 15 }); | |
| 16 self::foo((core::Object x) → core::Null { | |
| 17 throw "not implemented"; | |
| 18 }); | |
| 19 } | |
| OLD | NEW |