File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package dotc
33package transform
44package init
55
6- import ast . tpd . _
6+ import scala . language .{ unsafeNulls => _ }
77
8+ import ast .tpd ._
89import core ._
910import Decorators ._ , printing .SyntaxHighlighting
1011import Types ._ , Symbols ._ , Contexts ._
@@ -37,7 +38,7 @@ object Errors {
3738 val line =
3839 if pos.source.exists then
3940 val loc = " [ " + pos.source.file.name + " :" + (pos.line + 1 ) + " ]"
40- val code = SyntaxHighlighting .highlight(pos.lineContent.trim)
41+ val code = SyntaxHighlighting .highlight(pos.lineContent.trim.nn )
4142 i " $code\t $loc"
4243 else
4344 tree.show
@@ -56,7 +57,7 @@ object Errors {
5657 case _ => this :: Nil
5758 }
5859
59- override def toString () = this .getClass.getName
60+ override def toString () = this .getClass.getName.nn
6061 }
6162
6263 /** Access non-initialized field */
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package dotty.tools.dotc
22package transform
33package init
44
5+ import scala .language .{unsafeNulls => _ }
6+
57import core ._
68import Contexts ._
79import Symbols ._
You can’t perform that action at this time.
0 commit comments