blob: 0c5ebe9337b1b772c4a2e72f4a20e9ddaa43d08b [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
class Foo extends core::Object {
field dynamic field = null;
synthetic constructor •() self::Foo
: super core::Object::•()
;
}
static method identity(dynamic x) dynamic
return x;
static method use(dynamic x) void {}
static method main(core::List<core::String> args) dynamic {
dynamic foo = self::identity(new self::Foo::•());
if(args.{core::List::length}.{core::num::>}(1)) {
foo.field = "string";
dynamic first = foo.field;
self::use(first);
foo.noField = "string";
dynamic second = foo.noField;
self::use(second);
}
}