summaryrefslogtreecommitdiff
path: root/test/files/run/repl-exceptions.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/repl-exceptions.scala')
-rw-r--r--test/files/run/repl-exceptions.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/repl-exceptions.scala b/test/files/run/repl-exceptions.scala
new file mode 100644
index 0000000000..aaf37c8ae7
--- /dev/null
+++ b/test/files/run/repl-exceptions.scala
@@ -0,0 +1,12 @@
+import scala.tools.partest.ReplTest
+import scala.tools.util.Javap
+
+object Test extends ReplTest {
+ override def extraSettings = "-Yrich-exceptions"
+ def code = """
+ |sys.SystemProperties.traceSourcePath setValue ""
+ |def f = sys.error("hi mom")
+ |f
+ |lastException.show
+ """.stripMargin
+}