20 lines
564 B
Kotlin
Vendored
20 lines
564 B
Kotlin
Vendored
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
fun String.forString(){}
|
|
fun Any.forAny(){}
|
|
|
|
fun <T> T.forT() {}
|
|
|
|
fun f(pair: Pair<out Any, out Any>) {
|
|
if (pair.first !is String) return
|
|
pair.first.<caret>
|
|
}
|
|
|
|
// EXIST: { lookupString: "length", attributes: "grayed" }
|
|
// EXIST: { lookupString: "hashCode", attributes: "bold" }
|
|
// EXIST: { lookupString: "forString", attributes: "grayed" }
|
|
// EXIST: { lookupString: "forAny", attributes: "bold" }
|
|
|
|
/*TODO: { lookupString: "forT", attributes: "" }*/
|
|
// EXIST: { lookupString: "forT", attributes: "grayed" }
|