diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-09-14 11:11:24 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-09-15 16:13:34 +0200 |
commit | a73fd7790c7ef788d8718b09b93e8ba494b31778 (patch) | |
tree | 043a5ccee5d5c2891b5ad6ea707fbb9729ad2960 /tests | |
parent | 70a8426912f6f256536470a046cdf86827ab2c93 (diff) | |
download | dotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.tar.gz dotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.tar.bz2 dotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.zip |
Allow try expression without catch or finally, issue warning
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/tryWithoutHandler.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/tryWithoutHandler.scala b/tests/pos/tryWithoutHandler.scala new file mode 100644 index 000000000..ffe334984 --- /dev/null +++ b/tests/pos/tryWithoutHandler.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]): Unit = { + try { + println("hello") + } + } +} |