Skip to content

Commit bd15941

Browse files
fix: isSensical in d"..." impl must inspect contents of List arg
1 parent 9b67ac2 commit bd15941

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dotty/tools/dotc/typer/ErrorReporting.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ object ErrorReporting {
115115
import DiagnosticString._
116116
def d(args: Any*)(implicit ctx: Context): String = {
117117
def isSensical(arg: Any): Boolean = arg match {
118+
case l: Seq[_] => l.forall(isSensical(_))
118119
case tpe: Type if tpe.isErroneous => false
119120
case NoType => false
120121
case sym: Symbol if sym.isCompleted =>

0 commit comments

Comments
 (0)