Fix collection literals resolve in gradle-based projects

#KT-19441 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-08-06 18:42:09 +02:00
parent b24c1bf06c
commit 0b358fb693
15 changed files with 234 additions and 10 deletions
@@ -120,6 +120,12 @@ public class AntTaskTestGenerated extends AbstractAntTaskTest {
doTest(fileName);
}
@TestMetadata("overloadResolutionOnCollectionLiteral")
public void testOverloadResolutionOnCollectionLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/");
doTest(fileName);
}
@TestMetadata("stdlibForJavacWithNoKotlin")
public void testStdlibForJavacWithNoKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/stdlibForJavacWithNoKotlin/");
@@ -132,6 +138,12 @@ public class AntTaskTestGenerated extends AbstractAntTaskTest {
doTest(fileName);
}
@TestMetadata("twoStdlibForCollectionLiterals")
public void testTwoStdlibForCollectionLiterals() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/");
doTest(fileName);
}
@TestMetadata("valWithInvoke")
public void testValWithInvoke() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/valWithInvoke/");
@@ -161,4 +173,10 @@ public class AntTaskTestGenerated extends AbstractAntTaskTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/withKotlinNoJavaSources/");
doTest(fileName);
}
@TestMetadata("wrongCallForCollectionLiteral")
public void testWrongCallForCollectionLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/");
doTest(fileName);
}
}