diff options
author | Burak Emir <emir@epfl.ch> | 2006-11-05 02:53:14 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-11-05 02:53:14 +0000 |
commit | 1e23988361e85f275b44041207988ef9aa0099f2 (patch) | |
tree | 167c7224dfbec04561337d771226fd678a3d1ae0 /test | |
parent | 9d507e381c8c101a3edf16e0c065e9b8efd5feec (diff) | |
download | scala-1e23988361e85f275b44041207988ef9aa0099f2.tar.gz scala-1e23988361e85f275b44041207988ef9aa0099f2.tar.bz2 scala-1e23988361e85f275b44041207988ef9aa0099f2.zip |
caseclass->product
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); //############################################################################ |