diff options
author | michelou <michelou@epfl.ch> | 2007-05-15 17:00:38 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-05-15 17:00:38 +0000 |
commit | 578b99d3a642479dad7e2eafc06b035dfee9fff8 (patch) | |
tree | 4b7c17017bddf9148966e0ff1f1184ca5f13a2e0 /test/files/pos | |
parent | aa5655211c441b329fc96b4282aeb713defffedd (diff) | |
download | scala-578b99d3a642479dad7e2eafc06b035dfee9fff8.tar.gz scala-578b99d3a642479dad7e2eafc06b035dfee9fff8.tar.bz2 scala-578b99d3a642479dad7e2eafc06b035dfee9fff8.zip |
added OSGi bundle support
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug1107.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/bug1107.scala b/test/files/pos/bug1107.scala new file mode 100644 index 0000000000..d3cdbf65cc --- /dev/null +++ b/test/files/pos/bug1107.scala @@ -0,0 +1,9 @@ +object F { + def tryf[T](ignore: List[Class])(f: => T): Any = { + try { + f + } catch { + case e if ignore == null || ignore.isEmpty => {false} + } + } +} |