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 fd6ac0a commit b32b45cCopy full SHA for b32b45c
src/dotty/tools/dotc/typer/ErrorReporting.scala
@@ -56,10 +56,12 @@ object ErrorReporting {
56
else ""
57
58
def expectedTypeStr(tp: Type): String = tp match {
59
+ case tp: PolyProto =>
60
+ d"type arguments [${tp.targs}%, %] and ${expectedTypeStr(tp.resultType)}"
61
case tp: FunProto =>
62
val result = tp.resultType match {
- case tp: WildcardType => ""
- case tp => d"and expected result type $tp"
63
+ case _: WildcardType | _: IgnoredProto => ""
64
+ case tp => d" and expected result type $tp"
65
}
66
d"arguments (${tp.typedArgs.tpes}%, %)$result"
67
case _ =>
0 commit comments