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 2ebb4e6 commit 5b2a5ffCopy full SHA for 5b2a5ff
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2160,7 +2160,9 @@ object Parsers {
2160
}
2161
else if (isContextual) {
2162
val tps = commaSeparated(refinedType)
2163
- val params = tps.map(makeSyntheticParameter(nparams + 1, _, Contextual | Implicit))
+ var counter = nparams
2164
+ def nextIdx = { counter += 1; counter }
2165
+ val params = tps.map(makeSyntheticParameter(nextIdx, _, Contextual | Implicit))
2166
params :: recur(firstClause = false, nparams + params.length)
2167
2168
else Nil
0 commit comments