aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-14 11:11:24 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-09-15 16:13:34 +0200
commita73fd7790c7ef788d8718b09b93e8ba494b31778 (patch)
tree043a5ccee5d5c2891b5ad6ea707fbb9729ad2960 /tests/pos
parent70a8426912f6f256536470a046cdf86827ab2c93 (diff)
downloaddotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.tar.gz
dotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.tar.bz2
dotty-a73fd7790c7ef788d8718b09b93e8ba494b31778.zip
Allow try expression without catch or finally, issue warning
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/tryWithoutHandler.scala7
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")
+ }
+ }
+}