summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-11-05 02:53:14 +0000
committerBurak Emir <emir@epfl.ch>2006-11-05 02:53:14 +0000
commit1e23988361e85f275b44041207988ef9aa0099f2 (patch)
tree167c7224dfbec04561337d771226fd678a3d1ae0 /test/files/run
parent9d507e381c8c101a3edf16e0c065e9b8efd5feec (diff)
downloadscala-1e23988361e85f275b44041207988ef9aa0099f2.tar.gz
scala-1e23988361e85f275b44041207988ef9aa0099f2.tar.bz2
scala-1e23988361e85f275b44041207988ef9aa0099f2.zip
caseclass->product
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/caseclasses.scala4
-rw-r--r--test/files/run/misc.scala10
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);
//############################################################################