mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 15:01:29 +00:00
36641368bb
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>
35 lines
904 B
Plaintext
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::•()
|
|
;
|
|
}
|