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 | 4 |
5 class Foo extends core::Object { | 5 class Foo extends core::Object { |
6 constructor •() → void | 6 constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 } | 9 } |
10 class Bar extends self::Foo { | 10 class Bar extends self::Foo { |
(...skipping 15 matching lines...) Expand all Loading... |
26 ; | 26 ; |
27 method method() → self::Foo { | 27 method method() → self::Foo { |
28 return new self::Bar::•(); | 28 return new self::Bar::•(); |
29 } | 29 } |
30 } | 30 } |
31 static method main(core::List<core::String> args) → dynamic { | 31 static method main(core::List<core::String> args) → dynamic { |
32 self::Base object = args.{core::List::length}.{core::num::==}(0) ? new self::B
ase::•() : new self::Sub::•(); | 32 self::Base object = args.{core::List::length}.{core::num::==}(0) ? new self::B
ase::•() : new self::Sub::•(); |
33 self::Foo a = object.{self::Base::method}(); | 33 self::Foo a = object.{self::Base::method}(); |
34 core::print(a); | 34 core::print(a); |
35 } | 35 } |
OLD | NEW |