Test: reference to constructor with inline class parameters
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
inline class Z(val x: Int)
|
||||
|
||||
class Outer(val z1: Z) {
|
||||
inner class Inner(val z2: Z)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(Z(1), ::Outer.invoke(Z(1)).z1)
|
||||
assertEquals(Z(2), Outer::Inner.invoke(Outer(Z(1)), Z(2)).z2)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+5
@@ -12066,6 +12066,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParameters.kt")
|
||||
public void testConstructorWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funWithInlineClassParameters.kt")
|
||||
public void testFunWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt");
|
||||
|
||||
+5
@@ -12066,6 +12066,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParameters.kt")
|
||||
public void testConstructorWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funWithInlineClassParameters.kt")
|
||||
public void testFunWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt");
|
||||
|
||||
+5
@@ -12071,6 +12071,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParameters.kt")
|
||||
public void testConstructorWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funWithInlineClassParameters.kt")
|
||||
public void testFunWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt");
|
||||
|
||||
+5
@@ -10586,6 +10586,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParameters.kt")
|
||||
public void testConstructorWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funWithInlineClassParameters.kt")
|
||||
public void testFunWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt");
|
||||
|
||||
+5
@@ -11631,6 +11631,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/boundInlineClassPrimaryVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParameters.kt")
|
||||
public void testConstructorWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/constructorWithInlineClassParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funWithInlineClassParameters.kt")
|
||||
public void testFunWithInlineClassParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/callableReferences/funWithInlineClassParameters.kt");
|
||||
|
||||
Reference in New Issue
Block a user