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