File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import dotty.tools.dotc.ast.Trees
2323import dotty .tools .dotc .ast .untpd .Modifiers
2424import dotty .tools .dotc .core .Flags .{FlagSet , Mutable }
2525import dotty .tools .dotc .core .SymDenotations .SymDenotation
26+ import scala .util .control .NonFatal
2627
2728object messages {
2829
@@ -708,10 +709,15 @@ object messages {
708709
709710 private val actualArgString = actual.map(_.show).mkString(" [" , " , " , " ]" )
710711
711- private val prettyName = fntpe.termSymbol match {
712- case NoSymbol => fntpe.show
713- case symbol => symbol.showFullName
714- }
712+ private val prettyName =
713+ try
714+ fntpe.termSymbol match {
715+ case NoSymbol => fntpe.show
716+ case symbol => symbol.showFullName
717+ }
718+ catch {
719+ case NonFatal (ex) => fntpe.show
720+ }
715721
716722 val msg =
717723 hl """ | ${NoColor (msgPrefix)} type arguments for $prettyName$expectedArgString
You can’t perform that action at this time.
0 commit comments