blob: b053d72bc7c928d717d29138d93c8881cdea6cf9 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/constants/function_invocation.dart:7:20: Error: Method invocation is not a constant expression.
// const invocation = tearOff();
// ^^^^^^^
//
import self as self;
static const field () dynamic tearOff = #C1;
static const field invalid-type invocation = invalid-expression "pkg/front_end/testcases/general/constants/function_invocation.dart:7:20: Error: Method invocation is not a constant expression.
const invocation = tearOff();
^^^^^^^";
static method method() dynamic {}
static method main() dynamic {}
constants {
#C1 = static-tearoff self::method
}