Files
kotlin-fork/idea/idea-completion/testData/smart/inOperator/GenericMethod3.kt
T
2016-04-05 19:32:55 +03:00

14 lines
280 B
Kotlin
Vendored

interface X<T>
operator fun<T> X<T>.contains(t: T): Boolean = true
interface A {
fun<T> createX(t: T): X<T>
fun foo(s: String) {
if (s in <caret>)
}
}
// EXIST: { lookupString:"createX", itemText: "createX", tailText: "(t: String)", typeText:"X<String>" }