diff options
Diffstat (limited to 'test/pos/exceptions.scala')
-rw-r--r-- | test/pos/exceptions.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pos/exceptions.scala b/test/pos/exceptions.scala new file mode 100644 index 0000000000..93140ddbbe --- /dev/null +++ b/test/pos/exceptions.scala @@ -0,0 +1,6 @@ +module test { + + def error[a](x: String):a = new java.lang.RuntimeException(x) throw; + + def main = error("hi!"); +}
\ No newline at end of file |