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
2
2
3
3
import com.github.codeql.comments.CommentExtractor
4
4
import com.github.codeql.utils.*
5
+ import com.github.codeql.utils.versions.allOverriddenIncludingSelf
5
6
import com.github.codeql.utils.versions.functionN
6
7
import com.github.codeql.utils.versions.isUnderscoreParameter
7
8
import com.semmle.extractor.java.OdasaOutput
8
9
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
9
- import org.jetbrains.kotlin.backend.common.ir.allOverridden
10
10
import org.jetbrains.kotlin.backend.common.lower.parents
11
11
import org.jetbrains.kotlin.backend.common.pop
12
12
import org.jetbrains.kotlin.builtins.functions.BuiltInFunctionArity
@@ -1859,7 +1859,7 @@ open class KotlinFileExtractor(
1859
1859
1860
1860
// Default parameter values are inherited by overrides; in this case the call should dispatch against the $default method belonging to the class
1861
1861
// 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 {
1863
1863
it.overriddenSymbols.isEmpty() && it.valueParameters.any { p -> p.defaultValue != null }
1864
1864
} ? : callTarget
1865
1865
if (isExternalDeclaration(overriddenCallTarget)) {
You can’t perform that action at this time.
0 commit comments