Minor, add compileKotlinAgainstKotlin test case for KT-41374
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
|||||||
|
// WITH_COROUTINES
|
||||||
|
// FILE: a.kt
|
||||||
|
|
||||||
|
package a
|
||||||
|
|
||||||
|
var result = ""
|
||||||
|
|
||||||
|
inline class P(val value: String)
|
||||||
|
|
||||||
|
suspend fun foo(p: P = P("OK")) {
|
||||||
|
result = p.value
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: b.kt
|
||||||
|
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
import helpers.*
|
||||||
|
import a.*
|
||||||
|
|
||||||
|
fun builder(c: suspend () -> Unit) {
|
||||||
|
c.startCoroutine(EmptyContinuation)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
builder {
|
||||||
|
foo()
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
+5
@@ -363,6 +363,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
|
|||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||||
|
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||||
|
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("targetedJvmName.kt")
|
@TestMetadata("targetedJvmName.kt")
|
||||||
public void testTargetedJvmName() throws Exception {
|
public void testTargetedJvmName() throws Exception {
|
||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||||
|
|||||||
Generated
+5
@@ -358,6 +358,11 @@ public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompile
|
|||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||||
|
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||||
|
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("targetedJvmName.kt")
|
@TestMetadata("targetedJvmName.kt")
|
||||||
public void testTargetedJvmName() throws Exception {
|
public void testTargetedJvmName() throws Exception {
|
||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||||
|
|||||||
+5
@@ -358,6 +358,11 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT
|
|||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||||
|
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||||
|
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("targetedJvmName.kt")
|
@TestMetadata("targetedJvmName.kt")
|
||||||
public void testTargetedJvmName() throws Exception {
|
public void testTargetedJvmName() throws Exception {
|
||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||||
|
|||||||
+5
@@ -358,6 +358,11 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT
|
|||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||||
|
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||||
|
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("targetedJvmName.kt")
|
@TestMetadata("targetedJvmName.kt")
|
||||||
public void testTargetedJvmName() throws Exception {
|
public void testTargetedJvmName() throws Exception {
|
||||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user