diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-05 20:15:20 +0900 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-03-08 10:38:41 +0100 |
commit | b5bdfab87b9be2cfbbc67370d1b6fbb5eb374098 (patch) | |
tree | 6587ba2ffbb1b6192dceb45d4d01cd23dfdb1a53 | |
parent | b3ca03f5e7c6414e84ea7a48da70998481609519 (diff) | |
download | dotty-b5bdfab87b9be2cfbbc67370d1b6fbb5eb374098.tar.gz dotty-b5bdfab87b9be2cfbbc67370d1b6fbb5eb374098.tar.bz2 dotty-b5bdfab87b9be2cfbbc67370d1b6fbb5eb374098.zip |
Add FatalError from scala.reflect
-rw-r--r-- | compiler/src/dotty/tools/FatalError.scala | 3 | ||||
-rw-r--r-- | compiler/src/dotty/tools/package.scala | 3 | ||||
-rw-r--r-- | compiler/test/dotty/partest/DPConsoleRunner.scala | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/compiler/src/dotty/tools/FatalError.scala b/compiler/src/dotty/tools/FatalError.scala new file mode 100644 index 000000000..f75d5cf12 --- /dev/null +++ b/compiler/src/dotty/tools/FatalError.scala @@ -0,0 +1,3 @@ +package dotty.tools + +case class FatalError(msg: String) extends Exception(msg) diff --git a/compiler/src/dotty/tools/package.scala b/compiler/src/dotty/tools/package.scala index 5dae82b71..68d24e229 100644 --- a/compiler/src/dotty/tools/package.scala +++ b/compiler/src/dotty/tools/package.scala @@ -2,9 +2,6 @@ package dotty import scala.annotation.Annotation package object tools { - type FatalError = scala.reflect.internal.FatalError - val FatalError = scala.reflect.internal.FatalError - class sharable extends Annotation class unshared extends Annotation diff --git a/compiler/test/dotty/partest/DPConsoleRunner.scala b/compiler/test/dotty/partest/DPConsoleRunner.scala index 7a25af6b7..aa926efe2 100644 --- a/compiler/test/dotty/partest/DPConsoleRunner.scala +++ b/compiler/test/dotty/partest/DPConsoleRunner.scala @@ -4,6 +4,7 @@ package dotty.partest +import dotty.tools.FatalError import scala.reflect.io.AbstractFile import scala.tools.partest._ import scala.tools.partest.nest._ @@ -294,8 +295,6 @@ class DPTestRunner(testFile: File, suiteRunner: DPSuiteRunner) extends nest.Runn // override to add the check for nr of compilation errors if there's a // target.nerr file override def runNegTest() = runInContext { - import scala.reflect.internal.FatalError - sealed abstract class NegTestState // Don't get confused, the neg test passes when compilation fails for at // least one round (optionally checking the number of compiler errors and |