KT-41670 Check for default property accessors in SAM interfaces
This commit is contained in:
committed by
teamcity
parent
59a052a615
commit
0b453ee328
+2
-1
@@ -227,7 +227,8 @@ internal class LambdaMetafactoryArgumentsBuilder(
|
||||
getAllSuperclasses().any { it.fqNameWhenAvailable == javaIoSerializableFqn }
|
||||
|
||||
private fun IrClass.requiresDelegationToDefaultImpls(): Boolean {
|
||||
for (irMemberFun in functions) {
|
||||
val functionsAndAccessors = functions + properties.mapNotNull { it.getter } + properties.mapNotNull { it.setter }
|
||||
for (irMemberFun in functionsAndAccessors) {
|
||||
if (irMemberFun.modality == Modality.ABSTRACT)
|
||||
continue
|
||||
val irImplFun =
|
||||
|
||||
Reference in New Issue
Block a user