| 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 802d838f316090e5ff4299854dc46efed117f735..0d1a0e389f19cabfd50693a0a9da6c9424d3906e 100644
|
| --- a/pkg/analyzer/test/src/summary/summary_common.dart
|
| +++ b/pkg/analyzer/test/src/summary/summary_common.dart
|
| @@ -6904,6 +6904,29 @@ final v = p.C.m();
|
| ]);
|
| }
|
|
|
| + test_expr_invokeMethodRef_with_reference_arg() {
|
| + if (skipNonConstInitializers) {
|
| + return;
|
| + }
|
| + UnlinkedVariable variable = serializeVariableText('''
|
| +f(x) => null;
|
| +final u = null;
|
| +final v = f(u);
|
| +''');
|
| + _assertUnlinkedConst(variable.constExpr, isValidConst: false, operators: [
|
| + UnlinkedConstOperation.pushReference,
|
| + UnlinkedConstOperation.invokeMethodRef
|
| + ], ints: [
|
| + 0,
|
| + 1
|
| + ], referenceValidators: [
|
| + (EntityRef r) => checkTypeRef(r, null, null, 'u',
|
| + expectedKind: ReferenceKind.topLevelPropertyAccessor),
|
| + (EntityRef r) => checkTypeRef(r, null, null, 'f',
|
| + expectedKind: ReferenceKind.topLevelFunction)
|
| + ]);
|
| + }
|
| +
|
| test_expr_throwException() {
|
| if (skipNonConstInitializers) {
|
| return;
|
|
|