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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ClassScope.java

Issue 12335071: Issue 8705. Fix for NPE when use method from mixin inside of class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/MixinScope.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/ClassScope.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ClassScope.java b/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
index f5625c6964b9198f927fb4db78ff56c53962af05..e5c393ffdc3e6f2f96c8a2ff9f67e13ce0a36513 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
@@ -76,7 +76,7 @@ class ClassScope extends Scope {
InterfaceType mixin = mixins.get(i);
ClassElement mixinElement = mixin.getElement();
if (!examinedTypes.contains(mixinElement)) {
- MixinScope scope = new MixinScope(mixinElement, null);
+ MixinScope scope = new MixinScope(mixinElement);
element = scope.findElement(inLibrary, name);
if (element != null) {
return element;
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/MixinScope.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698