Index: runtime/lib/errors_patch.dart |
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart |
index cf42b572f7c9a7904b0c590174835b36af7ade8b..f26d4d4e238feb6c54a9618a043040da2ff5bd8e 100644 |
--- a/runtime/lib/errors_patch.dart |
+++ b/runtime/lib/errors_patch.dart |
@@ -312,7 +312,7 @@ class NoSuchMethodError { |
.writeln("The $type_str '$memberName' was called on null."); |
} |
} else { |
- if (_receiver is Function) { |
+ if (_receiver is _Closure) { |
msg_buf.writeln("Closure call with mismatched arguments: " |
"function '$memberName'"); |
} else if (_receiver is _Type && memberName == "call") { |