blob: 5bc7ad7f8348bf1e9b10a6abd3a9e5770d978851 [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;
field core::bool _#C#x#isSet = false;
synthetic constructor •() self::C
: super core::Object::•()
;
get x() core::int
return this.{self::C::_#C#x#isSet}{core::bool} ?{core::int} let final core::int? #t1 = this.{self::C::_#C#x}{core::int?} in #t1{core::int} : throw new _in::LateError::fieldNI("x");
set x(covariant-by-declaration core::int x#param) → void
if(this.{self::C::_#C#x#isSet}{core::bool})
throw new _in::LateError::fieldAI("x");
else {
this.{self::C::_#C#x#isSet} = true;
this.{self::C::_#C#x} = x#param;
}
}
class D extends self::C {
synthetic constructor •() self::D
: super self::C::•()
;
set x(covariant-by-declaration core::num value) void {
super.{self::C::x} = value.{core::num::toInt}(){() core::int};
}
}
static method main() dynamic {
new self::D::•().{self::D::x} = 3.14;
}