| library /*isNonNullableByDefault*/; |
| // |
| // 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 |
| } |