From d1eeb5ffd9ee701f0ffce21eac10227328178113 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 14 Sep 2016 11:46:07 +0200 Subject: Improve error message on empty catch block --- tests/neg/emptyCatch.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/neg/emptyCatch.scala (limited to 'tests/neg/emptyCatch.scala') 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 +} -- cgit v1.2.3