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>
17 lines
544 B
Plaintext
17 lines
544 B
Plaintext
library test;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class C extends core::Object {
|
|
synthetic constructor •() → self::C
|
|
: super core::Object::•()
|
|
;
|
|
method f() → core::int
|
|
return throw "";
|
|
}
|
|
static method g(self::C? c) → dynamic {
|
|
core::int? x = let final self::C? #t1 = c in #t1 == null ?{core::int?} null : #t1{self::C}.{self::C::f}(){() → core::int};
|
|
let final self::C? #t2 = c in #t2 == null ?{core::int?} null : #t2{self::C}.{self::C::f}(){() → core::int};
|
|
}
|
|
static method main() → dynamic {}
|