File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ package com.github.codeql
22
33import com.github.codeql.comments.CommentExtractor
44import com.github.codeql.utils.*
5+ import com.github.codeql.utils.versions.allOverriddenIncludingSelf
56import com.github.codeql.utils.versions.functionN
67import com.github.codeql.utils.versions.isUnderscoreParameter
78import com.semmle.extractor.java.OdasaOutput
89import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
9- import org.jetbrains.kotlin.backend.common.ir.allOverridden
1010import org.jetbrains.kotlin.backend.common.lower.parents
1111import org.jetbrains.kotlin.backend.common.pop
1212import org.jetbrains.kotlin.builtins.functions.BuiltInFunctionArity
@@ -1859,7 +1859,7 @@ open class KotlinFileExtractor(
18591859
18601860 // Default parameter values are inherited by overrides; in this case the call should dispatch against the $default method belonging to the class
18611861 // that specified the default values, which will in turn dynamically dispatch back to the relevant override.
1862- val overriddenCallTarget = (callTarget as ? IrSimpleFunction )?.allOverridden( true )?.firstOrNull {
1862+ val overriddenCallTarget = (callTarget as ? IrSimpleFunction )?.allOverriddenIncludingSelf( )?.firstOrNull {
18631863 it.overriddenSymbols.isEmpty() && it.valueParameters.any { p -> p.defaultValue != null }
18641864 } ? : callTarget
18651865 if (isExternalDeclaration(overriddenCallTarget)) {
You can’t perform that action at this time.
0 commit comments