mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Fix kotlinFunctionToJavaEquivalent to ignore nullability
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user