c1160d8cfa
Change-Id: Ied8777df13aa0411daf89f3ad3ec6bdda7bb4898 Reviewed-on: https://dart-review.googlesource.com/35862 Reviewed-by: Kevin Millikin <kmillikin@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
20 lines
478 B
Plaintext
20 lines
478 B
Plaintext
library test;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class A extends core::Object {
|
|
synthetic constructor •() → void
|
|
: super core::Object::•()
|
|
;
|
|
operator +(dynamic other) → core::int
|
|
return 1;
|
|
operator -(dynamic other) → core::double
|
|
return 2.0;
|
|
}
|
|
static field dynamic v_add = new self::A::•().+("foo");
|
|
static field dynamic v_minus = new self::A::•().-("bar");
|
|
static method main() → dynamic {
|
|
self::v_add;
|
|
self::v_minus;
|
|
}
|