Fix kotlinFunctionToJavaEquivalent to ignore nullability

This commit is contained in:
Tamas Vajk
2022-09-30 17:39:39 +02:00
parent e490a854ce
commit 343e45ee0f
8 changed files with 1 additions and 10 deletions

View File

@@ -1276,7 +1276,7 @@ open class KotlinUsesExtractor(
javaClass.declarations.findSubType<IrFunction> { decl ->
decl.name.asString() == jvmName &&
decl.valueParameters.size == f.valueParameters.size &&
decl.valueParameters.zip(f.valueParameters).all { p -> erase(p.first.type) == erase(p.second.type) }
decl.valueParameters.zip(f.valueParameters).all { p -> erase(p.first.type).classifierOrNull == erase(p.second.type).classifierOrNull }
} ?:
// Or check property accessors:
(f.propertyIfAccessor as? IrProperty)?.let { kotlinProp ->