dart-sdk/pkg/front_end/testcases/late_lowering/issue41436/issue41436.dart.weak.modular.expect
Johnni Winther 36641368bb [cfe] Treat NonNullableByDefault as default in ast-to-text
This changes ast-to-text to mark legacy libraries instead of
non-nullable-by-default libraries.

TEST=existing

Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2023-06-08 06:28:50 +00:00

35 lines
904 B
Plaintext

library;
import self as self;
import "dart:test" as test;
import "dart:test";
static method main() → dynamic {
test::A a;
}
library;
import self as test;
import "dart:core" as core;
import "dart:_internal" as _in;
abstract class A extends core::Object {
field core::int? _#A#x = null;
field core::bool _#A#x#isSet = false;
synthetic constructor •() → test::A
: super core::Object::•()
;
get x() → core::int
return this.{test::A::_#A#x#isSet}{core::bool} ?{core::int} let final core::int? #t1 = this.{test::A::_#A#x}{core::int?} in #t1{core::int} : throw new _in::LateError::fieldNI("x");
set x(core::int x#param) → void {
this.{test::A::_#A#x#isSet} = true;
this.{test::A::_#A#x} = x#param;
}
}
class _B extends core::Object implements test::A {
field core::int x = 3;
synthetic constructor •() → test::_B
: super core::Object::•()
;
}