IR: add and unmute tests
This commit is contained in:
Generated
+10
@@ -6770,6 +6770,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines");
|
||||
@@ -16911,6 +16916,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
suspend fun susp() {}
|
||||
|
||||
interface I {
|
||||
|
||||
suspend fun problematic() {
|
||||
run {
|
||||
susp()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// We only test compilation.
|
||||
fun box() = "OK"
|
||||
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
class Outer<X>(val x: X) {
|
||||
inner class Inner<Y>(val y: Y) {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
class Q<TT> {
|
||||
fun <T> qz(x: T, block: (T) -> String) = block(x)
|
||||
|
||||
fun problematic(): String {
|
||||
class CC
|
||||
|
||||
return qz(CC::class) { "OK" }
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = Q<Int>().problematic()
|
||||
+10
@@ -7190,6 +7190,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_2() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines.experimental");
|
||||
@@ -18136,6 +18141,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
+10
@@ -7190,6 +7190,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_2() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines.experimental");
|
||||
@@ -18141,6 +18146,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
+10
@@ -6770,6 +6770,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendJavaOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines");
|
||||
@@ -16911,6 +16916,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
Generated
+10
@@ -5725,6 +5725,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines");
|
||||
@@ -13626,6 +13631,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
Generated
+10
@@ -5725,6 +5725,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines");
|
||||
@@ -13626,6 +13631,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
+10
@@ -5725,6 +5725,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaWithArgumentRearrangement.kt")
|
||||
public void testSuspendLambdaWithArgumentRearrangement_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendLambdaWithArgumentRearrangement.kt", "kotlin.coroutines");
|
||||
@@ -13691,6 +13696,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localExtendsInnerAndReferencesOuterMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localGenericWithTypeParameters.kt")
|
||||
public void testLocalGenericWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localGenericWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nameWithWhitespace.kt")
|
||||
public void testNameWithWhitespace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt");
|
||||
|
||||
Reference in New Issue
Block a user