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 33bdaac commit 63bf7f3Copy full SHA for 63bf7f3
compiler/src/dotty/tools/dotc/reporting/Message.scala
@@ -147,7 +147,7 @@ object Message:
147
}
148
149
def addendum(cat: String, info: Type): String = info match {
150
- case bounds @ TypeBounds(lo, hi) if bounds ne TypeBounds.empty =>
+ case bounds @ TypeBounds(lo, hi) if !(bounds =:= TypeBounds.empty) =>
151
if (lo eq hi) i" which is an alias of $lo"
152
else i" with $cat ${boundsStr(bounds)}"
153
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