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 716d93d commit 43a77e9Copy full SHA for 43a77e9
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -2166,7 +2166,7 @@ trait Applications extends Compatibility {
2166
val reverseMapping = alts.flatMap { alt =>
2167
val t = f(alt)
2168
if t.exists then
2169
- val (trimmed, skipped) = trimParamss(t, alt.symbol.rawParamss)
+ val (trimmed, skipped) = trimParamss(t.stripPoly, alt.symbol.rawParamss)
2170
val mappedSym = alt.symbol.asTerm.copy(info = t)
2171
mappedSym.rawParamss = trimmed
2172
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