blob: 4cb439c238a0e3da0e70563fb97c46c40ee133dc [file] [log] [blame] [edit]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/wildcard_variables/local_var.dart:8:3: Error: Setter not found: '_'.
// _ = 3; // Compile-time error.
// ^
//
// pkg/front_end/testcases/wildcard_variables/local_var.dart:19:15: Error: Constant evaluation error:
// const _ = 2 + d; // This should result in a compile-time error.
// ^
// pkg/front_end/testcases/wildcard_variables/local_var.dart:19:17: Context: Expected constant '"string"' to be of type 'num', but was of type 'String'.
// const _ = 2 + d; // This should result in a compile-time error.
// ^
// pkg/front_end/testcases/wildcard_variables/local_var.dart:19:9: Context: While analyzing:
// const _ = 2 + d; // This should result in a compile-time error.
// ^
//
import self as self;
import "dart:core" as core;
static method test() dynamic {
1;
2;
invalid-expression "pkg/front_end/testcases/wildcard_variables/local_var.dart:8:3: Error: Setter not found: '_'.
_ = 3; // Compile-time error.
^";
2;
2;
function test2() core::int
return 1;
test2(){() core::int};
const wildcard core::int _#wc5#var = #C1;
const wildcard core::int _#wc6#var = #C2;
const wildcard core::int _#wc7#var = #C2;
const dynamic d = #C3;
const wildcard core::num _#wc8#var = invalid-expression "Expected constant '\"string\"' to be of type 'num', but was of type 'String'.";
}
constants {
#C1 = 5
#C2 = 3
#C3 = "string"
}