aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t1107a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t1107a.scala')
-rw-r--r--tests/untried/pos/t1107a.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/pos/t1107a.scala b/tests/untried/pos/t1107a.scala
new file mode 100644
index 000000000..0bf40bb4c
--- /dev/null
+++ b/tests/untried/pos/t1107a.scala
@@ -0,0 +1,10 @@
+object F {
+ type AnyClass = Class[_]
+ def tryf[T](ignore: List[AnyClass])(f: => T): Any = {
+ try {
+ f
+ } catch {
+ case e if ignore == null || ignore.isEmpty => {false}
+ }
+ }
+}