mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 07:19:58 +00:00
893b4d4fe9
Also rename void-methods.dart to void_methods.dart. R=johnniwinther@google.com Review-Url: https://codereview.chromium.org/3006963002 .
22 lines
551 B
Plaintext
22 lines
551 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];
|
|
default constructor •() → void
|
|
: super core::Object::•()
|
|
;
|
|
set first(dynamic x) → dynamic
|
|
this.list.[]=(0, x);
|
|
operator []=(dynamic x, dynamic y) → dynamic
|
|
this.list.[]=(x, y);
|
|
method clear() → void
|
|
return this.list.clear();
|
|
}
|
|
static method main() → dynamic {
|
|
new self::Foo::•().first = 4;
|
|
new self::Foo::•().[]=(3, 4);
|
|
new self::Foo::•().clear();
|
|
}
|