OLD | NEW |
1 // dynamic is not a subtype of dart.core::int (void-methods.dart:4:27) | 1 // dynamic is not a subtype of dart.core::int (void-methods.dart:4:28) |
2 library; | 2 library; |
3 import self as self; | 3 import self as self; |
4 import "dart:core" as core; | 4 import "dart:core" as core; |
5 | 5 |
6 class Foo extends core::Object { | 6 class Foo extends core::Object { |
7 field core::List<dynamic> list = <core::int>[1, 2, 3]; | 7 field core::List<dynamic> list = <core::int>[1, 2, 3]; |
8 constructor •() → void | 8 constructor •() → void |
9 : super core::Object::•() | 9 : super core::Object::•() |
10 ; | 10 ; |
11 set first(dynamic x) → void | 11 set first(dynamic x) → void |
12 this.{self::Foo::list}.{core::List::[]=}(0, x); | 12 this.{self::Foo::list}.{core::List::[]=}(0, x); |
13 operator []=(dynamic x, dynamic y) → dynamic | 13 operator []=(dynamic x, dynamic y) → dynamic |
14 this.{self::Foo::list}.{core::List::[]=}(x, y); | 14 this.{self::Foo::list}.{core::List::[]=}(x, y); |
15 method clear() → void | 15 method clear() → void |
16 this.{self::Foo::list}.{core::List::clear}(); | 16 this.{self::Foo::list}.{core::List::clear}(); |
17 } | 17 } |
18 static method main() → dynamic { | 18 static method main() → dynamic { |
19 new self::Foo::•().{self::Foo::first} = 4; | 19 new self::Foo::•().{self::Foo::first} = 4; |
20 new self::Foo::•().{self::Foo::[]=}(3, 4); | 20 new self::Foo::•().{self::Foo::[]=}(3, 4); |
21 new self::Foo::•().{self::Foo::clear}(); | 21 new self::Foo::•().{self::Foo::clear}(); |
22 } | 22 } |
OLD | NEW |