diff options
author | Martin Odersky <odersky@gmail.com> | 2007-07-12 14:56:50 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-07-12 14:56:50 +0000 |
commit | 080802c84dd71fe6b6912025d4338e8b122a6a9a (patch) | |
tree | ca64772a9fdf2912d2cfcadae2bacebc37e29202 /test/files/pos/bug1168.scala | |
parent | a874f351097b67eef720bb64faffc603070526ed (diff) | |
download | scala-080802c84dd71fe6b6912025d4338e8b122a6a9a.tar.gz scala-080802c84dd71fe6b6912025d4338e8b122a6a9a.tar.bz2 scala-080802c84dd71fe6b6912025d4338e8b122a6a9a.zip |
1.
2. some new tests.
3. split Type.symbol to typeSymbol/termSymbol
4. some fixes to lub opertation
Diffstat (limited to 'test/files/pos/bug1168.scala')
-rw-r--r-- | test/files/pos/bug1168.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/bug1168.scala b/test/files/pos/bug1168.scala new file mode 100644 index 0000000000..58407e328e --- /dev/null +++ b/test/files/pos/bug1168.scala @@ -0,0 +1,16 @@ +object Test extends Application { + + trait SpecialException {} + + try { + throw new Exception + } catch { + case e : SpecialException => { + println("matched SpecialException: "+e) + assume(e.isInstanceOf[SpecialException]) + } + case e : Exception => { + assume(e.isInstanceOf[Exception]) + } + } +} |