From 97980ef3220ba1c32159e907586705b613e1ff60 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Fri, 8 Sep 2006 11:03:35 +0000 Subject: changed behav of caseElement --- test/files/run/misc.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/files/run/misc.scala b/test/files/run/misc.scala index 900139e1cd..bff24ae0ee 100644 --- a/test/files/run/misc.scala +++ b/test/files/run/misc.scala @@ -221,11 +221,11 @@ Console.println; case class Foo(i:int, j:char, c:Bar) ; Console.println( - Foo(3,'a',Bar()).caseElement( -1 ) == null + true // Foo(3,'a',Bar()).caseElement( -1 ) == null // throws Exception now && Foo(3,'a',Bar()).caseElement( 0 ) == 3 && Foo(3,'a',Bar()).caseElement( 1 ) == 'a' && Foo(3,'a',Bar()).caseElement( 2 ) == Bar() - && Foo(3,'a',Bar()).caseElement( 3 ) == null + && true // Foo(3,'a',Bar()).caseElement( 3 ) == null // throws Exception now && Bar().caseArity == 0 && Foo(3,'a',Bar()).caseArity == 3); -- cgit v1.2.3