diff --git a/idea/idea-completion/testData/smart/inheritors/GenericClass2.kt b/idea/idea-completion/testData/smart/inheritors/GenericClass2.kt index c84b4963942..ba5f828875e 100644 --- a/idea/idea-completion/testData/smart/inheritors/GenericClass2.kt +++ b/idea/idea-completion/testData/smart/inheritors/GenericClass2.kt @@ -14,5 +14,11 @@ fun bar() { // EXIST: { itemText: "object: C1<...>(){...}" } // EXIST: { itemText: "object: C2(){...}" } // EXIST: { itemText: "object: C3(){...}" } + +// 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, b: T, c: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" } // NOTHING_ELSE diff --git a/idea/idea-completion/testData/smart/inheritors/GenericClass3.kt b/idea/idea-completion/testData/smart/inheritors/GenericClass3.kt index 52036982ef3..12896bc5652 100644 --- a/idea/idea-completion/testData/smart/inheritors/GenericClass3.kt +++ b/idea/idea-completion/testData/smart/inheritors/GenericClass3.kt @@ -15,5 +15,11 @@ fun bar() { // EXIST: { itemText: "object: C1<...>(){...}" } // EXIST: { itemText: "object: C2(){...}" } // EXIST: { itemText: "object: C4(){...}" } + +// 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, b: T, c: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" } // NOTHING_ELSE diff --git a/idea/idea-completion/testData/smart/inheritors/GenericClass4.kt b/idea/idea-completion/testData/smart/inheritors/GenericClass4.kt index 3a24b32c87e..12d861ca5e6 100644 --- a/idea/idea-completion/testData/smart/inheritors/GenericClass4.kt +++ b/idea/idea-completion/testData/smart/inheritors/GenericClass4.kt @@ -10,5 +10,11 @@ fun bar() { // EXIST: { itemText: "object: I<...>{...}" } // EXIST: { itemText: "object: C<...>(){...}" } + +// 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, b: T, c: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" } // NOTHING_ELSE diff --git a/idea/idea-completion/testData/smart/inheritors/GenericClass6.kt b/idea/idea-completion/testData/smart/inheritors/GenericClass6.kt index 7fa7aa17423..ef2a74a9919 100644 --- a/idea/idea-completion/testData/smart/inheritors/GenericClass6.kt +++ b/idea/idea-completion/testData/smart/inheritors/GenericClass6.kt @@ -17,5 +17,11 @@ fun bar() { // EXIST: { itemText: "object: I<...>{...}" } // EXIST: { itemText: "object: C1(){...}" } // 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, b: T, c: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T) (kotlin.comparisons)" } +// EXIST: { itemText: "minOf", tailText: "(a: T, b: T, c: T) (kotlin.comparisons)" } // NOTHING_ELSE