From a5ef3d597df276500e294d5f758ce7d7033e8835 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Wed, 4 Jun 2008 12:55:06 +0000 Subject: Fixed #981. --- test/files/run/try.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/files') 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(); () -- cgit v1.2.3