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 661573ebf1365d1e2c94420bf998d708b534197d..7d3f665ef16a4281e2364fb73e506876acf8f133 100644 |
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart |
@@ -1574,6 +1574,20 @@ class SimpleTypeInferrerVisitor<T> |
} |
@override |
+ T handleAssert(ast.Send node, ast.Node expression) { |
+ js.JavaScriptBackend backend = compiler.backend; |
+ Element element = backend.assertMethod; |
+ ArgumentsTypes<T> arguments = |
+ new ArgumentsTypes<T>(<T>[expression.accept(this)], null); |
+ return handleStaticSend( |
+ node, |
+ new Selector.fromElement(element), |
+ null, |
+ element, |
+ arguments); |
+ } |
+ |
+ @override |
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 |