Files
kotlin-fork/idea/idea-completion/testData/basic/common/AfterNullableAutoCast2.kt
T
Valentin Kipyatkov bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00

31 lines
771 B
Kotlin
Vendored

trait T1 {
fun inT1(){}
}
trait 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: "" }