summaryrefslogtreecommitdiff
path: root/test/files/pos/bug1107.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-05-15 17:00:38 +0000
committermichelou <michelou@epfl.ch>2007-05-15 17:00:38 +0000
commit578b99d3a642479dad7e2eafc06b035dfee9fff8 (patch)
tree4b7c17017bddf9148966e0ff1f1184ca5f13a2e0 /test/files/pos/bug1107.scala
parentaa5655211c441b329fc96b4282aeb713defffedd (diff)
downloadscala-578b99d3a642479dad7e2eafc06b035dfee9fff8.tar.gz
scala-578b99d3a642479dad7e2eafc06b035dfee9fff8.tar.bz2
scala-578b99d3a642479dad7e2eafc06b035dfee9fff8.zip
added OSGi bundle support
Diffstat (limited to 'test/files/pos/bug1107.scala')
-rw-r--r--test/files/pos/bug1107.scala9
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}
+ }
+ }
+}