diff options
Diffstat (limited to 'test/files/run')
-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(); () |