| library; |
| import self as self; |
| import "dart:core" as core; |
| |
| class A extends core::Object { |
| synthetic constructor •() → self::A |
| : super core::Object::•() |
| ; |
| method foo() → dynamic |
| return null; |
| } |
| static method main() → dynamic { |
| function bar<T extends self::A>(T t) → void { |
| core::print("t.foo()=${t.{self::A::foo}(){() → dynamic}}"); |
| } |
| bar<self::A>(new self::A::•()){(self::A) → void}; |
| (<S extends self::A>(S s) → Null { |
| core::print("s.foo()=${s.{self::A::foo}(){() → dynamic}}"); |
| })<self::A>(new self::A::•()){(self::A) → Null}; |
| } |