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 7256a12 commit c938debCopy full SHA for c938deb
compiler/src/dotty/tools/dotc/typer/ReTyper.scala
@@ -58,9 +58,7 @@ class ReTyper extends Typer {
58
}
59
60
override def typedUnApply(tree: untpd.UnApply, selType: Type)(implicit ctx: Context): UnApply = {
61
- val funProto = new UnapplyFunProto(WildcardType, this)
62
-
63
- val fun1 = typedExpr(tree.fun, funProto)
+ val fun1 = typedUnadapted(tree.fun, AnyFunctionProto)
64
val implicits1 = tree.implicits.map(typedExpr(_))
65
val patterns1 = tree.patterns.mapconserve(pat => typed(pat, pat.tpe))
66
untpd.cpy.UnApply(tree)(fun1, implicits1, patterns1).withType(tree.tpe)
0 commit comments