diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/emptyCatch.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/neg/emptyCatch.scala b/tests/neg/emptyCatch.scala new file mode 100644 index 000000000..60951d27a --- /dev/null +++ b/tests/neg/emptyCatch.scala @@ -0,0 +1,3 @@ +object Test { + try {} catch {} // error: `catch` block does not contain a valid expression, try adding a case like - `case e: Exception =>` to the block +} |