diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-06-04 12:55:06 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-06-04 12:55:06 +0000 |
commit | a5ef3d597df276500e294d5f758ce7d7033e8835 (patch) | |
tree | e5e1b4f868c939d03eef7db9b2663009271bb96e /test | |
parent | fb88e0421c9ae85c795b1913f0165ffab5b092f3 (diff) | |
download | scala-a5ef3d597df276500e294d5f758ce7d7033e8835.tar.gz scala-a5ef3d597df276500e294d5f758ce7d7033e8835.tar.bz2 scala-a5ef3d597df276500e294d5f758ce7d7033e8835.zip |
Fixed #981.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/try.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/try.scala b/test/files/run/try.scala index 934ebaa2e7..594c630cc8 100644 --- a/test/files/run/try.scala +++ b/test/files/run/try.scala @@ -85,6 +85,24 @@ object Test extends AnyRef with Application { Console.println(result); } + // ticket #981 + def try6 { + class SekwencjaArray { + def get = null + } + + var sekw : SekwencjaArray = + try { + null + } catch { + case _ => null + } + + new AnyRef { + def getValueAt(row:Int, col:Int) = sekw.get + } + } + /* def finally1 = { Console.print("1 + 1 = "); @@ -104,6 +122,7 @@ object Test extends AnyRef with Application { try3; try4; try5; + try6; Console.println; new A(); () |