diff options
Diffstat (limited to 'test/files/run/misc.scala')
-rw-r--r-- | test/files/run/misc.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/misc.scala b/test/files/run/misc.scala index 4ae0f37007..6229cd4510 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()).element( 0 ) == 3 - && Foo(3,'a',Bar()).element( 1 ) == 'a' - && Foo(3,'a',Bar()).element( 2 ) == Bar() + && Foo(3,'a',Bar()).productElement( 0 ) == 3 + && Foo(3,'a',Bar()).productElement( 1 ) == 'a' + && Foo(3,'a',Bar()).productElement( 2 ) == Bar() && true // Foo(3,'a',Bar()).caseElement( 3 ) == null // throws Exception now - && Bar().arity == 0 - && Foo(3,'a',Bar()).arity == 3); + && Bar().productArity == 0 + && Foo(3,'a',Bar()).productArity == 3); //############################################################################ |