| Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| index 851cde8ace5ec26d4966b8755be4647c2645396d..653147ae7f8e590cfb40b82e841d65ee7bf924ba 100644
|
| --- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| @@ -1032,15 +1032,13 @@ class SimpleTypeInferrerVisitor<T>
|
| }
|
|
|
| @override
|
| - T visitTypeLiteralSend(ast.Send node) {
|
| - if (node.isCall) {
|
| - // This is reached when users forget to put a `new` in front of a type
|
| - // literal. The emitter will generate an actual call (even though it is
|
| - // likely invalid), and for that it needs to have the arguments processed
|
| - // as well.
|
| - analyzeArguments(node.arguments);
|
| - }
|
| - return super.visitTypeLiteralSend(node);
|
| + T handleTypeLiteralInvoke(ast.NodeList arguments) {
|
| + // This is reached when users forget to put a `new` in front of a type
|
| + // literal. The emitter will generate an actual call (even though it is
|
| + // likely invalid), and for that it needs to have the arguments processed
|
| + // as well.
|
| + analyzeArguments(arguments.nodes);
|
| + return super.handleTypeLiteralInvoke(arguments);
|
| }
|
|
|
| T visitStaticSend(ast.Send node) {
|
|
|