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
3
3
package transform
4
4
package init
5
5
6
- import ast . tpd . _
6
+ import scala . language .{ unsafeNulls => _ }
7
7
8
+ import ast .tpd ._
8
9
import core ._
9
10
import Decorators ._ , printing .SyntaxHighlighting
10
11
import Types ._ , Symbols ._ , Contexts ._
@@ -37,7 +38,7 @@ object Errors {
37
38
val line =
38
39
if pos.source.exists then
39
40
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 )
41
42
i " $code\t $loc"
42
43
else
43
44
tree.show
@@ -56,7 +57,7 @@ object Errors {
56
57
case _ => this :: Nil
57
58
}
58
59
59
- override def toString () = this .getClass.getName
60
+ override def toString () = this .getClass.getName.nn
60
61
}
61
62
62
63
/** Access non-initialized field */
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package dotty.tools.dotc
2
2
package transform
3
3
package init
4
4
5
+ import scala .language .{unsafeNulls => _ }
6
+
5
7
import core ._
6
8
import Contexts ._
7
9
import Symbols ._
You can’t perform that action at this time.
0 commit comments