| OLD | NEW |
| (Empty) |
| 1 library; | |
| 2 import self as self; | |
| 3 import "dart:core" as core; | |
| 4 | |
| 5 abstract class Base extends core::Object { | |
| 6 constructor •() → void | |
| 7 : super core::Object::•() | |
| 8 ; | |
| 9 } | |
| 10 class Foo extends self::Base { | |
| 11 constructor •() → void | |
| 12 : super self::Base::•() | |
| 13 ; | |
| 14 } | |
| 15 class Bar extends self::Base { | |
| 16 constructor •() → void | |
| 17 : super self::Base::•() | |
| 18 ; | |
| 19 } | |
| 20 class Baz extends self::Base { | |
| 21 constructor •() → void | |
| 22 : super self::Base::•() | |
| 23 ; | |
| 24 } | |
| 25 static method foo(dynamic/self::Foo! {other} x) → void/Null {} | |
| 26 static method bar(dynamic/self::Bar! {other} x) → void/Null {} | |
| 27 static method foo_escaped(dynamic/core::Object+ {*} x) → void/Null {} | |
| 28 static method bar_escaped(dynamic/core::Object+ {*} x) → void/Null {} | |
| 29 static method escape(dynamic/core::Function* {other} fn) → void/Null { | |
| 30 fn.call(new self::Baz::•()); | |
| 31 } | |
| 32 static method main() → dynamic/Null { | |
| 33 self::foo(new self::Foo::•()); | |
| 34 self::bar(new self::Bar::•()); | |
| 35 self::escape(self::foo_escaped); | |
| 36 self::escape(self::bar_escaped); | |
| 37 } | |
| OLD | NEW |