We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a079acb commit 2d612eaCopy full SHA for 2d612ea
language-server/src/dotty/tools/languageserver/Signatures.scala
@@ -19,7 +19,7 @@ object Signatures {
19
case Apply(fun, params) :: _ =>
20
val alreadyAppliedCount = Signatures.countParams(fun)
21
val paramIndex = params.indexWhere(_.pos.contains(pos)) match {
22
- case -1 => (params.length - 1 max 0) + alreadyAppliedCount
+ case -1 => ((params.length - 1) max 0) + alreadyAppliedCount
23
case n => n + alreadyAppliedCount
24
}
25
0 commit comments