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.
2 parents 6b8b31c + 55dbf64 commit 6059da4Copy full SHA for 6059da4
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -2140,7 +2140,7 @@ trait Applications extends Compatibility {
2140
val reverseMapping = alts.flatMap { alt =>
2141
val t = f(alt)
2142
if t.exists then
2143
- val (trimmed, skipped) = trimParamss(t, alt.symbol.rawParamss)
+ val (trimmed, skipped) = trimParamss(t.stripPoly, alt.symbol.rawParamss)
2144
val mappedSym = alt.symbol.asTerm.copy(info = t)
2145
mappedSym.rawParamss = trimmed
2146
val (pre, totalSkipped) = mappedAltInfo(alt.symbol) match
tests/pos/i16484.scala
@@ -0,0 +1,3 @@
1
+trait JWTEncoder:
2
+ def encode[P](arg: String)(opt: Option[String] = None): String
3
+ def encode[P](arg: String): String = encode(arg)()
0 commit comments