diff options
Diffstat (limited to 'tests/pos/t1107a.scala')
-rw-r--r-- | tests/pos/t1107a.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/t1107a.scala b/tests/pos/t1107a.scala new file mode 100644 index 000000000..0bf40bb4c --- /dev/null +++ b/tests/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} + } + } +} |