Skip to content

Commit 605aa2f

Browse files
committed
Some more
1 parent 0b09d9a commit 605aa2f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

compiler/src/dotty/tools/dotc/transform/init/Errors.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package dotc
33
package transform
44
package init
55

6-
import ast.tpd._
6+
import scala.language.{unsafeNulls => _}
77

8+
import ast.tpd._
89
import core._
910
import Decorators._, printing.SyntaxHighlighting
1011
import 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 */

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package dotty.tools.dotc
22
package transform
33
package init
44

5+
import scala.language.{unsafeNulls => _}
6+
57
import core._
68
import Contexts._
79
import Symbols._

0 commit comments

Comments
 (0)