Files
kotlin-fork/idea/idea-completion/testData/basic/common/boldOrGrayed/AfterNullableAutoCast2.kt
T
2015-09-22 15:00:24 +02:00

31 lines
779 B
Kotlin
Vendored

interface T1 {
fun inT1(){}
}
interface T2 {
fun inT2(){}
}
fun T1.forT1(){}
fun T2.forT2(){}
fun T1?.forNullableT1(){}
fun T2?.forNullableT2(){}
fun Any.forAny(){}
fun Any?.forNullableAny(){}
fun foo(o: T1?) {
if (o is T2) {
o.<caret>
}
}
// EXIST: { lookupString: "inT1", attributes: "bold" }
// EXIST: { lookupString: "inT2", attributes: "bold" }
// EXIST: { lookupString: "hashCode", attributes: "" }
// EXIST: { lookupString: "forT1", attributes: "bold" }
// EXIST: { lookupString: "forT2", attributes: "bold" }
// EXIST: { lookupString: "forNullableT1", attributes: "" }
// EXIST: { lookupString: "forNullableT2", attributes: "" }
// EXIST: { lookupString: "forAny", attributes: "" }
// EXIST: { lookupString: "forNullableAny", attributes: "" }