this references excluded from debug annotations

This commit is contained in:
Andrey Breslav
2011-09-05 20:05:50 +04:00
parent 2e45307082
commit ecd63c5f73
2 changed files with 5 additions and 2 deletions
@@ -74,6 +74,9 @@ public class DebugInfoAnnotator implements Annotator {
} }
if (JetTokens.LABELS.contains(referencedNameElementType)) return; if (JetTokens.LABELS.contains(referencedNameElementType)) return;
} }
else if (nameExpression.getReferencedNameElementType() == JetTokens.THIS_KEYWORD) {
return;
}
} }
String target = null; String target = null;
@@ -1,7 +1,7 @@
namespace a { namespace a {
val foo = bar() val foo = <error>bar()</error>
fun bar() = <error>foo</error> fun bar() = foo
} }
namespace b { namespace b {