Add compatibility warning for SAM conversions on Kotlin functions
This commit is contained in:
+10
@@ -7959,6 +7959,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/genericSubstitutionForFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noCompatibilityResolveForFunInterfaces.kt")
|
||||
public void testNoCompatibilityResolveForFunInterfaces() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/noCompatibilityResolveForFunInterfaces.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resolveFunInterfaceWithoutMainMethod.kt")
|
||||
public void testResolveFunInterfaceWithoutMainMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/resolveFunInterfaceWithoutMainMethod.kt");
|
||||
@@ -13611,6 +13616,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/sam"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("compatibilityResolveToOuterScopeForKotlinFunctions.kt")
|
||||
public void testCompatibilityResolveToOuterScopeForKotlinFunctions() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/compatibilityResolveToOuterScopeForKotlinFunctions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enhancedSamConstructor.kt")
|
||||
public void testEnhancedSamConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/enhancedSamConstructor.kt");
|
||||
|
||||
Reference in New Issue
Block a user