Skip to content

Commit 6585953

Browse files
committed
Add FatalError from scala.reflect
1 parent fca34af commit 6585953

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package dotty.tools
2+
3+
case class FatalError(msg: String) extends Exception(msg)

compiler/src/dotty/tools/package.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ package dotty
22
import scala.annotation.Annotation
33

44
package object tools {
5-
type FatalError = scala.reflect.internal.FatalError
6-
val FatalError = scala.reflect.internal.FatalError
7-
85
class sharable extends Annotation
96
class unshared extends Annotation
107

compiler/test/dotty/partest/DPConsoleRunner.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package dotty.partest
66

7+
import dotty.tools.FatalError
78
import scala.reflect.io.AbstractFile
89
import scala.tools.partest._
910
import scala.tools.partest.nest._
@@ -294,8 +295,6 @@ class DPTestRunner(testFile: File, suiteRunner: DPSuiteRunner) extends nest.Runn
294295
// override to add the check for nr of compilation errors if there's a
295296
// target.nerr file
296297
override def runNegTest() = runInContext {
297-
import scala.reflect.internal.FatalError
298-
299298
sealed abstract class NegTestState
300299
// Don't get confused, the neg test passes when compilation fails for at
301300
// least one round (optionally checking the number of compiler errors and

0 commit comments

Comments
 (0)