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:
Dmitry Savvinov
2020-08-22 14:44:24 +03:00
parent 68d931969d
commit 421efaa565
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
MODULE jvm { platform=[JVM] }
jvm -> STDLIB_JVM { kind=DEPENDENCY }
jvm -> STDLIB_COMMON { kind=DEPENDENCY }
+5
View File
@@ -0,0 +1,5 @@
package sample
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>arrayListOf<!>(1, 2, 3)
}
@@ -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/");