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>
23 lines
748 B
Plaintext
23 lines
748 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
static const field core::String str = "str";
|
|
static const field core::String var1 = self::str.{core::String::[]}(2){(core::int) → core::String};
|
|
static const field dynamic var2 = self::fn();
|
|
static const field core::String var3 = "str".{core::String::[]}(0){(core::int) → core::String};
|
|
static const field dynamic var4 = self::fn2();
|
|
static method fn() → dynamic
|
|
;
|
|
static method fn2() → dynamic
|
|
;
|
|
static method main() → void
|
|
;
|
|
|
|
|
|
Extra constant evaluation status:
|
|
Evaluated: StaticGet @ org-dartlang-testcase:///const_functions_string.dart:10:14 -> StringConstant("str")
|
|
Extra constant evaluation: evaluated: 5, effectively constant: 1
|