Files
kotlin-fork/idea/testData/smartSelection/labelledThis.kt
T
Tuomas Tynkkynen 64f67f30f0 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.
2014-02-09 17:22:30 +04:00

10 lines
139 B
Kotlin

class Foo() {
val s = th<caret>is@Foo.toString()
}
// 'this' should not be listed, only 'this@Foo'
/*
this@Foo
this@Foo.toString()
*/