"this" with matching type are preferred in ordinary completion
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface X
|
||||
|
||||
open class Y : X {
|
||||
open inner class Inner {
|
||||
fun Any.foo(): X {
|
||||
if (this@Inner is X) return this@<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ORDER: this@Inner
|
||||
// ORDER: this@Y
|
||||
// ORDER: this@foo
|
||||
Reference in New Issue
Block a user