diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-01-27 20:45:27 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-01-27 20:45:27 +0000 |
commit | 44af59968783b4c962cb26a8d8e13a6597197a40 (patch) | |
tree | 466dc13306211d16ba388f14a2d8df19b6cdbf32 /test/files | |
parent | c717ffa0fdfcd72b1cc5ebc9b28e91e41442aad3 (diff) | |
download | scala-44af59968783b4c962cb26a8d8e13a6597197a40.tar.gz scala-44af59968783b4c962cb26a8d8e13a6597197a40.tar.bz2 scala-44af59968783b4c962cb26a8d8e13a6597197a40.zip |
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/justthrow.check | 1 | ||||
-rw-r--r-- | test/files/run/justthrow.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/justthrow.check b/test/files/run/justthrow.check new file mode 100644 index 0000000000..fb28403fcb --- /dev/null +++ b/test/files/run/justthrow.check @@ -0,0 +1 @@ +exception happened diff --git a/test/files/run/justthrow.scala b/test/files/run/justthrow.scala new file mode 100644 index 0000000000..0ff5b54e71 --- /dev/null +++ b/test/files/run/justthrow.scala @@ -0,0 +1,10 @@ +object Test { + def main(args:Array[String]): Unit = { + try { + throw new Error(); + } + catch { + case _ => Console.println("exception happened\n"); + } + } +} |