blob: cb5ebebe48780d845edcaf3477bcb9f8fc8b0e63 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
static method test1() dynamic {
core::num b = 0;
b as core::int;
b{core::int}.{core::int::isEven}{core::bool};
{
final synthesized(core::double) #0#0 = (3.14);
b = #0#0.$1{core::double};
}
return b;
}
static method test2() dynamic {
core::num b = 0;
b as core::int;
b{core::int}.{core::int::isEven}{core::bool};
{
final synthesized(core::double, {foo: core::String}) #0#0 = (3.14, {foo: "foo"});
b = #0#0.$1{core::double};
}
return b;
}
static method test3() dynamic {
core::num b = 0;
b as core::int;
b{core::int}.{core::int::isEven}{core::bool};
{
final synthesized({foo: core::double}) #0#0 = ({foo: 3.14});
b = #0#0.foo{core::double};
}
return b;
}
Extra constant evaluation status:
Evaluated: RecordLiteral @ org-dartlang-testcase:///issue51587.dart:9:10 -> RecordConstant(const (3.14))
Evaluated: RecordLiteral @ org-dartlang-testcase:///issue51587.dart:17:17 -> RecordConstant(const (3.14, {foo: "foo"}))
Evaluated: RecordLiteral @ org-dartlang-testcase:///issue51587.dart:25:14 -> RecordConstant(const ({foo: 3.14}))
Extra constant evaluation: evaluated: 27, effectively constant: 3