[FIR-IDE] Update tests
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
class A
|
||||
open class B
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
open class Base
|
||||
open class OtherBase
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
open class Base
|
||||
open class SubBase:Base()
|
||||
open class SubSubBase:SubBase()
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
import java.util.HashSet
|
||||
|
||||
open class Base
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
open class Base
|
||||
|
||||
class ManySome<T, U>
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
fun <T : Int> T.ext1() {}
|
||||
fun <T : String> T.ext2() {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
class A<T1, T2> {
|
||||
fun foo1() {}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
interface I<T>
|
||||
|
||||
fun <E, T : I<E>> T.ext() : T = this
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
interface D<T>
|
||||
|
||||
fun <T1, T2 : D<T1>> T2.ext() {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
fun <T> Iterable<T>.first() : T? {
|
||||
return this.iterator()?.next()
|
||||
}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
fun <T> Some<T>.close() {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
class MyClass<T>
|
||||
|
||||
fun <T> MyClass<T>.ext() = ""
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
fun <T : Any> T.anyFun() {}
|
||||
val <T : Any> T.anyVal: Int get() = 10
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_COMPARISON
|
||||
class Z<T> {
|
||||
fun f(): Z<T> = ext<caret>
|
||||
}
|
||||
|
||||
+15
@@ -85,6 +85,11 @@ public class HighLevelJvmBasicCompletionTestGenerated extends AbstractHighLevelJ
|
||||
runTest("idea/idea-completion/testData/basic/common/ComponentFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConsiderExtensionType.kt")
|
||||
public void testConsiderExtensionType() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/ConsiderExtensionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CoroutineContext.kt")
|
||||
public void testCoroutineContext() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/CoroutineContext.kt");
|
||||
@@ -185,6 +190,11 @@ public class HighLevelJvmBasicCompletionTestGenerated extends AbstractHighLevelJ
|
||||
runTest("idea/idea-completion/testData/basic/common/ExtensionWithManyTypeParamsInReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionsWithTypeParameterConstraints.kt")
|
||||
public void testExtensionsWithTypeParameterConstraints() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/ExtensionsWithTypeParameterConstraints.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FromImports.kt")
|
||||
public void testFromImports() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/FromImports.kt");
|
||||
@@ -200,6 +210,11 @@ public class HighLevelJvmBasicCompletionTestGenerated extends AbstractHighLevelJ
|
||||
runTest("idea/idea-completion/testData/basic/common/FunctionVariableCallArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericCompanionExtension.kt")
|
||||
public void testGenericCompanionExtension() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/GenericCompanionExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("GenericExtensionFunReceiver1.kt")
|
||||
public void testGenericExtensionFunReceiver1() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/GenericExtensionFunReceiver1.kt");
|
||||
|
||||
Reference in New Issue
Block a user