30 lines
954 B
Kotlin
Vendored
30 lines
954 B
Kotlin
Vendored
interface X
|
|
interface Y : X
|
|
interface Z
|
|
|
|
interface I<T>
|
|
|
|
abstract class C1<T> : I<T>
|
|
abstract class C2 : I<Y>
|
|
abstract class C3 : I<Z>
|
|
|
|
fun <T : X> foo(i: I<T>){}
|
|
|
|
fun bar() {
|
|
foo(<caret>)
|
|
}
|
|
|
|
// EXIST: { itemText: "object : I<...>{...}" }
|
|
// EXIST: { itemText: "object : C1<X>(){...}" }
|
|
// EXIST: { itemText: "object : C2(){...}" }
|
|
|
|
// all these items shouldn't be proposed, see KT-15479
|
|
// EXIST: { itemText: "enumValueOf" }
|
|
// EXIST: { itemText: "maxOf", tailText: "(a: T, b: T) (kotlin.comparisons)" }
|
|
// EXIST: { itemText: "maxOf", tailText: "(a: T, vararg other: T) (kotlin.comparisons)" }
|
|
// EXIST: { itemText: "maxOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" }
|
|
// EXIST: { itemText: "minOf", tailText: "(a: T, b: T) (kotlin.comparisons)" }
|
|
// EXIST: { itemText: "minOf", tailText: "(a: T, vararg other: T) (kotlin.comparisons)" }
|
|
// EXIST: { itemText: "minOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" }
|
|
// NOTHING_ELSE
|