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>
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Foo extends core::Object {
|
|
field core::int field = null;
|
|
static field core::int staticField = null;
|
|
synthetic constructor •() → self::Foo
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method main() → dynamic {
|
|
self::Foo foo = new self::Foo::•();
|
|
let final self::Foo #t1 = foo in #t1.==(null) ?{core::int} null : #t1.{self::Foo::field} = 5;
|
|
self::Foo::staticField = 5;
|
|
let final self::Foo #t2 = foo in #t2.{self::Foo::field}.{core::num::==}(null) ?{core::int} #t2.{self::Foo::field} = 5 : null;
|
|
self::Foo::staticField.{core::num::==}(null) ?{core::int} self::Foo::staticField = 5 : null;
|
|
let final self::Foo #t3 = foo in #t3.==(null) ?{core::int} null : #t3.{self::Foo::field}.{core::num::==}(null) ?{core::int} #t3.{self::Foo::field} = 5 : null;
|
|
self::Foo::staticField.{core::num::==}(null) ?{core::int} self::Foo::staticField = 5 : null;
|
|
core::int intValue = let final core::int #t4 = foo.{self::Foo::field} in #t4.==(null) ?{core::int} 6 : #t4;
|
|
core::num numValue = let final core::int #t5 = foo.{self::Foo::field} in #t5.==(null) ?{core::num} 4.5 : #t5;
|
|
}
|