Prevent smartSelectExpression from breaking up 'this@outerClass'

The previous commit made JetThisExpression not implement
JetStatementExpression. This had the side effect that
smartSelectExpression over a label-qualified this expression
(e.g 'this@outerClass') would now also list a plain 'this'
as a potential expression. Restore the old behaviour by adding an
explicit check for JetThisExpression.
This commit is contained in:
Tuomas Tynkkynen
2014-02-05 16:38:22 +02:00
committed by Nikolay Krasko
parent 9ce40cd17b
commit 64f67f30f0
3 changed files with 15 additions and 1 deletions
@@ -0,0 +1,9 @@
class Foo() {
val s = th<caret>is@Foo.toString()
}
// 'this' should not be listed, only 'this@Foo'
/*
this@Foo
this@Foo.toString()
*/