874710bdf3
Change-Id: I5c87f431bae49471908a96fbbfe8b1f4d3098c6b Reviewed-on: https://dart-review.googlesource.com/c/81822 Commit-Queue: Peter von der Ahé <ahe@google.com> Auto-Submit: Peter von der Ahé <ahe@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
22 lines
618 B
Plaintext
22 lines
618 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Foo extends core::Object {
|
|
field core::List<dynamic> list = <dynamic>[1, 2, 3];
|
|
synthetic constructor •() → self::Foo
|
|
: super core::Object::•()
|
|
;
|
|
set first(dynamic x) → void
|
|
this.list.[]=(0, x);
|
|
operator []=(dynamic x, dynamic y) → void
|
|
this.list.[]=(x, y);
|
|
method clear() → void
|
|
return this.{self::Foo::list}.{core::List::clear}();
|
|
}
|
|
static method main() → dynamic {
|
|
new self::Foo::•().{self::Foo::first} = 4;
|
|
new self::Foo::•().{self::Foo::[]=}(3, 4);
|
|
new self::Foo::•().{self::Foo::clear}();
|
|
}
|