blob: 7df4dbc0bd7555167e5a23a9edfbf8a67fe97665 [file] [log] [blame]
library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
import "dart:_internal" as _in;
class C extends core::Object {
field core::int? _#C#x = null;
synthetic constructor •() self::C
: super core::Object::•()
;
get x() core::int
return let final core::int? #t1 = this.{self::C::_#C#x} in #t1.==(null) ?{core::int} throw new _in::LateError::fieldNI("x") : #t1{core::int};
set x(covariant core::int #t2) → void
if(this.{self::C::_#C#x}.==(null))
this.{self::C::_#C#x} = #t2;
else
throw new _in::LateError::fieldAI("x");
}
class D extends self::C {
synthetic constructor •() self::D
: super self::C::•()
;
set x(covariant core::num value) void {
super.{self::C::x} = value.{core::num::toInt}();
}
}
static method main() dynamic {
new self::D::•().{self::D::x} = 3.14;
}