"this" with matching type are preferred in ordinary completion

This commit is contained in:
Valentin Kipyatkov
2015-08-04 22:34:10 +03:00
parent 2b61f4c552
commit 07311234db
4 changed files with 36 additions and 7 deletions
@@ -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