Report error if fun interface method has JVM name getFunctionDelegate
This is needed so that it wouldn't clash with the corresponding member from the kotlin/jvm/internal/FunctionAdapter interface, which all fun interface wrappers will implement to get proper equals/hashCode. The workaround is to rename the fun interface method. #KT-33455
This commit is contained in:
@@ -7951,6 +7951,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funIsNotInheritedFromBaseInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionDelegateClashOnJvm.kt")
|
||||
public void testFunctionDelegateClashOnJvm() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/functionDelegateClashOnJvm.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericSubstitutionForFunInterface.kt")
|
||||
public void testGenericSubstitutionForFunInterface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/genericSubstitutionForFunInterface.kt");
|
||||
|
||||
Reference in New Issue
Block a user