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 d3fafd6 + 63bf7f3 commit 0336e68Copy full SHA for 0336e68
compiler/src/dotty/tools/dotc/reporting/Message.scala
@@ -146,7 +146,7 @@ object Message:
146
}
147
148
def addendum(cat: String, info: Type): String = info match {
149
- case bounds @ TypeBounds(lo, hi) if bounds ne TypeBounds.empty =>
+ case bounds @ TypeBounds(lo, hi) if !(bounds =:= TypeBounds.empty) =>
150
if (lo eq hi) i" which is an alias of $lo"
151
else i" with $cat ${boundsStr(bounds)}"
152
case _ =>
tests/neg/i13780-1.check
@@ -5,7 +5,7 @@
5
| Required: h
6
|
7
| where: VS is a type in method foo with bounds <: Tuple
8
- | h is a type in method foo with bounds
+ | h is a type in method foo
9
| t is a type in method foo with bounds <: Tuple
10
11
0 commit comments