diff --git a/idea/src/org/jetbrains/jet/plugin/annotations/DebugInfoAnnotator.java b/idea/src/org/jetbrains/jet/plugin/annotations/DebugInfoAnnotator.java
index f669687dda1..21fc3bc00bf 100644
--- a/idea/src/org/jetbrains/jet/plugin/annotations/DebugInfoAnnotator.java
+++ b/idea/src/org/jetbrains/jet/plugin/annotations/DebugInfoAnnotator.java
@@ -74,6 +74,9 @@ public class DebugInfoAnnotator implements Annotator {
}
if (JetTokens.LABELS.contains(referencedNameElementType)) return;
}
+ else if (nameExpression.getReferencedNameElementType() == JetTokens.THIS_KEYWORD) {
+ return;
+ }
}
String target = null;
diff --git a/idea/testData/checker/RecursiveTypeInference.jet b/idea/testData/checker/RecursiveTypeInference.jet
index cb32ac6cefc..a73cf01cc0e 100644
--- a/idea/testData/checker/RecursiveTypeInference.jet
+++ b/idea/testData/checker/RecursiveTypeInference.jet
@@ -1,7 +1,7 @@
namespace a {
- val foo = bar()
+ val foo = bar()
- fun bar() = foo
+ fun bar() = foo
}
namespace b {