@@ -1196,17 +1196,16 @@ open class KotlinUsesExtractor(
1196
1196
// Look for an exact type match...
1197
1197
javaClass.declarations.findSubType<IrFunction > { decl ->
1198
1198
decl.name.asString() == jvmName &&
1199
- decl.valueParameters.size == f.valueParameters.size &&
1200
- // Note matching by classifier not the whole type so that generic arguments are allowed to differ,
1201
- // as they always will for method type parameters occurring in parameter types (e.g. <T> toArray(T[] array)
1202
- // Differing only by nullability would also be insignificant if it came up.
1203
- decl.valueParameters.zip(f.valueParameters)
1204
- .all { p -> p.first.type.classifierOrNull == p.second.type.classifierOrNull }
1199
+ decl.valueParameters.size == f.valueParameters.size &&
1200
+ // Note matching by classifier not the whole type so that generic arguments are allowed to differ,
1201
+ // as they always will for method type parameters occurring in parameter types (e.g. <T> toArray(T[] array)
1202
+ // Differing only by nullability would also be insignificant if it came up.
1203
+ decl.valueParameters.zip(f.valueParameters).all { p -> p.first.type.classifierOrNull == p.second.type.classifierOrNull }
1205
1204
} ? :
1206
1205
// Or if there is none, look for the only viable overload
1207
1206
javaClass.declarations.singleOrNullSubType<IrFunction > { decl ->
1208
1207
decl.name.asString() == jvmName &&
1209
- decl.valueParameters.size == f.valueParameters.size
1208
+ decl.valueParameters.size == f.valueParameters.size
1210
1209
} ? :
1211
1210
// Or check property accessors:
1212
1211
(f.propertyIfAccessor as ? IrProperty )?.let { kotlinProp ->
0 commit comments