From d828ace341eba19d0e591e8c50e2dad2fb4acc37 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 18 Oct 2009 13:41:11 +0000 Subject: Fixing failing test from exhaustiveness patch. --- test/files/neg/patmatexhaust.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files') diff --git a/test/files/neg/patmatexhaust.scala b/test/files/neg/patmatexhaust.scala index ffb37f3be6..b172df8740 100644 --- a/test/files/neg/patmatexhaust.scala +++ b/test/files/neg/patmatexhaust.scala @@ -67,7 +67,7 @@ class TestSealedExhaustive { // compile only } sealed class B - case class B1 extends B + case class B1() extends B case object B2 extends B def ma8(x: B) = x match { case _: B => true @@ -81,7 +81,7 @@ class TestSealedExhaustive { // compile only object C2 extends C case object C6 extends C class C3 extends C1 - case class C4 extends C3 + case class C4() extends C3 def ma10(x: C) = x match { // exhaustive case C4() => true case C2 | C6 => true -- cgit v1.2.3