Files
kotlin-fork/idea/idea-completion/testData/basic/common/AfterNullableAutoCast.kt
T
Valentin Kipyatkov 9e26d0eacf Graying members from smart cast receiver types that require explicit receiver cast
+ changed immediate member criteria (override member is not counted as immediate anymore)
+ fixed a bug in graying members
2015-08-14 17:38:29 +03:00

17 lines
470 B
Kotlin
Vendored

fun String?.forNullableString(){}
fun Any?.forNullableAny(){}
fun String.forString(){}
fun Any.forAny(){}
fun foo(o: Any?) {
if (o is String) {
o.<caret>
}
}
// EXIST: { lookupString: "forNullableString", attributes: "" }
// EXIST: { lookupString: "forNullableAny", attributes: "" }
// EXIST: { lookupString: "forString", attributes: "bold" }
// EXIST: { lookupString: "forAny", attributes: "" }
// EXIST: { lookupString: "compareTo", attributes: "" }