Files
sdk/pkg/front_end/testcases/const_functions/const_functions_string.dart.weak.outline.expect
T
Kallen Tu 2d330c7985 [cfe] String [] operator for const functions.
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>
2021-04-19 17:17:48 +00:00

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