2d330c7985
Change-Id: Ia1ad96cd77d94c096bf8a10aa0377f37c79ed398 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195560 Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Jake Macdonald <jakemac@google.com>
23 lines
715 B
Plaintext
23 lines
715 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
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);
|
|
static const field dynamic var2 = self::fn();
|
|
static const field core::String var3 = "str".{core::String::[]}(0);
|
|
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
|