| Index: pkg/analyzer/test/src/summary/summary_common.dart
|
| diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
|
| index 3dd4f0c8ce2fa8e9cf61745ce5427eef17698f15..d7a25f35190fe49516009fb11168e80499249837 100644
|
| --- a/pkg/analyzer/test/src/summary/summary_common.dart
|
| +++ b/pkg/analyzer/test/src/summary/summary_common.dart
|
| @@ -7500,6 +7500,19 @@ final v = ((a, b) => 42)(1, 2);
|
| ]);
|
| }
|
|
|
| + test_expr_invalid_typeParameter_asPrefix() {
|
| + if (skipNonConstInitializers) {
|
| + return;
|
| + }
|
| + var c = serializeClassText('''
|
| +class C<T> {
|
| + final f = T.k;
|
| +}
|
| +''');
|
| + assertUnlinkedConst(c.fields[0].initializer.bodyExpr,
|
| + isValidConst: false, operators: []);
|
| + }
|
| +
|
| test_expr_invokeMethod_instance() {
|
| if (skipNonConstInitializers) {
|
| return;
|
| @@ -9888,6 +9901,17 @@ void f<T, U>(bool b) {
|
| checkDynamicTypeRef(serializeTypeText('dynamic'));
|
| }
|
|
|
| + test_type_invalid_typeParameter_asPrefix() {
|
| + UnlinkedClass c = serializeClassText('''
|
| +class C<T> {
|
| + m(T.K p) {}
|
| +}
|
| +''');
|
| + UnlinkedExecutable m = c.executables[0];
|
| + expect(m.name, 'm');
|
| + checkTypeRef(m.parameters[0].type, null, null, 'dynamic');
|
| + }
|
| +
|
| test_type_param_codeRange() {
|
| if (!includeInformative) return;
|
| UnlinkedClass cls =
|
|
|