Files
kotlin-fork/idea/idea-completion/testData/smart/SuperMembers.kt
T
Valentin Kipyatkov b73c574d19 Correct completion after "super."
#KT-8406 Fixed
2015-11-05 17:47:54 +03:00

37 lines
773 B
Kotlin
Vendored

import java.io.File
interface I {
fun abstractFun(): Int
val abstractVal: Int
fun nonAbstractFun(): Int = 0
}
fun I.extOnI(): Int = 0
val File.extOnFile: Int get() = 1
open class Base : File("") {
open fun fromBase1(): Any = 1
open fun fromBase2(): Int = 1
}
abstract class A : Base(), I {
override fun abstractFun(): Int {
return super.<caret>
}
override fun fromBase1(): Int = 0
}
// ABSENT: abstractFun
// ABSENT: abstractVal
// EXIST: { itemText: "nonAbstractFun", attributes: "bold" }
// EXIST: { itemText: "hashCode", attributes: "" }
// EXIST: { itemText: "compareTo", attributes: "" }
// ABSENT: fromBase1
// EXIST: { itemText: "fromBase2", attributes: "bold" }
// ABSENT: extOnI
// ABSENT: extOnFile
// NOTHING_ELSE