From ecd63c5f73bcd03d14c7961ae5601379dbb855dd Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 5 Sep 2011 20:05:50 +0400 Subject: [PATCH] this references excluded from debug annotations --- .../jetbrains/jet/plugin/annotations/DebugInfoAnnotator.java | 3 +++ idea/testData/checker/RecursiveTypeInference.jet | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 {