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