| OLD | NEW |
| (Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 typedef Function2 = <S extends core::Object, T extends core::Object>(S) → T; |
| 6 class A<T extends core::Object> extends core::Object { |
| 7 field (self::A::T) → self::A::T x; |
| 8 constructor •((self::A::T) → self::A::T x) → void |
| 9 : self::A::x = x, super core::Object::•() |
| 10 ; |
| 11 } |
| 12 static method main() → void { |
| 13 { |
| 14 core::String x = "hello"; |
| 15 core::int y = 3; |
| 16 function f(core::List<core::Map<core::int, core::String>> l) → void {} |
| 17 ; |
| 18 f.call(<core::Map<core::int, core::String>>[<core::int, core::String>{y: x}]
); |
| 19 } |
| 20 { |
| 21 function f(core::int x) → core::int |
| 22 return 0; |
| 23 self::A<core::int> a = new self::A::•<core::int>(f); |
| 24 } |
| 25 } |
| OLD | NEW |