Add test for overload resoultion ambiguity in HMPP
The behaviour is undesired, see the next commit for fix ^KT-41218 In Progress
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
MODULE jvm { platform=[JVM] }
|
||||||
|
|
||||||
|
jvm -> STDLIB_JVM { kind=DEPENDENCY }
|
||||||
|
jvm -> STDLIB_COMMON { kind=DEPENDENCY }
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package sample
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
<!OVERLOAD_RESOLUTION_AMBIGUITY!>arrayListOf<!>(1, 2, 3)
|
||||||
|
}
|
||||||
Generated
+5
@@ -158,6 +158,11 @@ public class MultiplatformAnalysisTestGenerated extends AbstractMultiplatformAna
|
|||||||
runTest("idea/testData/multiplatform/jvmDefaultNonMpp/");
|
runTest("idea/testData/multiplatform/jvmDefaultNonMpp/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt41218")
|
||||||
|
public void testKt41218() throws Exception {
|
||||||
|
runTest("idea/testData/multiplatform/kt41218/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambdas")
|
@TestMetadata("lambdas")
|
||||||
public void testLambdas() throws Exception {
|
public void testLambdas() throws Exception {
|
||||||
runTest("idea/testData/multiplatform/lambdas/");
|
runTest("idea/testData/multiplatform/lambdas/");
|
||||||
|
|||||||
Reference in New Issue
Block a user