diff options
author | michelou <michelou@epfl.ch> | 2007-12-19 12:07:24 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-12-19 12:07:24 +0000 |
commit | 7d3efa0e191d805d171961b26baab773669b2b69 (patch) | |
tree | b6ba36cc9bab747fb025954d258c7e66d5c7dbf4 /test/files/pos/bug1107.scala | |
parent | 74dc1a845361a7cbfac93e1936f6487e9ae69283 (diff) | |
download | scala-7d3efa0e191d805d171961b26baab773669b2b69.tar.gz scala-7d3efa0e191d805d171961b26baab773669b2b69.tar.bz2 scala-7d3efa0e191d805d171961b26baab773669b2b69.zip |
added type param to Class
Diffstat (limited to 'test/files/pos/bug1107.scala')
-rw-r--r-- | test/files/pos/bug1107.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/pos/bug1107.scala b/test/files/pos/bug1107.scala index d3cdbf65cc..0bf40bb4cc 100644 --- a/test/files/pos/bug1107.scala +++ b/test/files/pos/bug1107.scala @@ -1,5 +1,6 @@ object F { - def tryf[T](ignore: List[Class])(f: => T): Any = { + type AnyClass = Class[_] + def tryf[T](ignore: List[AnyClass])(f: => T): Any = { try { f } catch { |