Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: lib/compiler/implementation/typechecker.dart

Issue 10920089: Generate a warning and a runtime error for calls to nonexistent static calls, getters and setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove case for variable == null in handling of ForIn. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index fc82c88311e9514d7b9eadbbafb61a800efa1a99..c189a27093a381d0d7f9ef4fa409460777379529 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -573,7 +573,7 @@ class TypeCheckerVisitor implements Visitor<DartType> {
if (memberType.element === compiler.dynamicClass) return null;
return memberType;
} else {
- if (element === null) {
+ if (Element.isInvalid(element)) {
fail(node, 'unresolved ${node.selector}');
} else if (element.kind === ElementKind.FUNCTION) {
return computeType(element);

Powered by Google App Engine
This is Rietveld 408576698