File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
java/ql/lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,11 @@ private predicate correspondingKotlinParameterDefaultsArgSpec(
120
120
exists ( int oldArgParsed |
121
121
oldArgParsed = AccessPathSyntax:: AccessPath:: parseInt ( oldArgNumber .splitAt ( "," ) .trim ( ) )
122
122
|
123
- if ktExtensionFunctions ( originalCallable , _, _) and oldArgParsed = 0
124
- then defaultsArgSpec = "Argument[0]"
123
+ if
124
+ ktExtensionFunctions ( originalCallable , _, _) and
125
+ ktExtensionFunctions ( defaultsCallable , _, _) and
126
+ oldArgParsed = 0
127
+ then defaultsArgSpec = "Argument[" + paramOffset + "]" // 1 if dispatch receiver is present, 0 otherwise.
125
128
else defaultsArgSpec = "Argument[" + ( oldArgParsed + paramOffset ) + "]" + rest
126
129
)
127
130
)
You can’t perform that action at this time.
0 commit comments