Introduce language feature for refined sam adapters priority

This commit is contained in:
Mikhail Zarechenskiy
2016-12-26 01:00:50 +03:00
parent b4051c4577
commit e448695578
17 changed files with 365 additions and 17 deletions
@@ -21414,6 +21414,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("overloadResolutionStaticWithoutRefinedSams.kt")
public void testOverloadResolutionStaticWithoutRefinedSams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/overloadResolutionStaticWithoutRefinedSams.kt");
doTest(fileName);
}
@TestMetadata("overloadResolutionWithoutRefinedSams.kt")
public void testOverloadResolutionWithoutRefinedSams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/overloadResolutionWithoutRefinedSams.kt");
doTest(fileName);
}
@TestMetadata("PackageLocal.kt")
public void testPackageLocal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/syntheticExtensions/samAdapters/PackageLocal.kt");
@@ -1195,6 +1195,30 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/resolve/samConstructorVsFun.kt");
doTest(fileName);
}
@TestMetadata("samOverloadsWithGenerics.kt")
public void testSamOverloadsWithGenerics() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenerics.kt");
doTest(fileName);
}
@TestMetadata("samOverloadsWithGenericsWithoutRefinedSams.kt")
public void testSamOverloadsWithGenericsWithoutRefinedSams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithGenericsWithoutRefinedSams.kt");
doTest(fileName);
}
@TestMetadata("samOverloadsWithKtFunction.kt")
public void testSamOverloadsWithKtFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunction.kt");
doTest(fileName);
}
@TestMetadata("samOverloadsWithKtFunctionWithoutRefinedSams.kt")
public void testSamOverloadsWithKtFunctionWithoutRefinedSams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/smartcasts")