diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/caseclasses.scala | 4 | ||||
-rw-r--r-- | test/files/run/misc.scala | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/files/run/caseclasses.scala b/test/files/run/caseclasses.scala index 7b9aa2e582..e064ba859f 100644 --- a/test/files/run/caseclasses.scala +++ b/test/files/run/caseclasses.scala @@ -12,14 +12,14 @@ object Test extends Application { } try { - Bar() caseElement 2 + Bar() element 3 throw new NullPointerException("duh") } catch { case x:IndexOutOfBoundsException => } try { - f(2) caseElement 2 + f(2) element 3 throw new NullPointerException("duh") } catch { case x:IndexOutOfBoundsException => diff --git a/test/files/run/misc.scala b/test/files/run/misc.scala index 7838328d4b..b705606342 100644 --- a/test/files/run/misc.scala +++ b/test/files/run/misc.scala @@ -222,12 +222,12 @@ Console.println; Console.println( 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()).element( 1 ) == 3 + && Foo(3,'a',Bar()).element( 2 ) == 'a' + && Foo(3,'a',Bar()).element( 3 ) == Bar() && true // Foo(3,'a',Bar()).caseElement( 3 ) == null // throws Exception now - && Bar().caseArity == 0 - && Foo(3,'a',Bar()).caseArity == 3); + && Bar().arity == 0 + && Foo(3,'a',Bar()).arity == 3); //############################################################################ |