From cdce02dc1d9c957621165545848c1f7bc358bd6d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 24 Jan 2015 11:32:25 +0100 Subject: Fixes suggested by reviews from @smarter. Also, added tests trhat work now. --- tests/pos/caseClassInMethod.scala | 2 +- tests/pos/refinedSubtyping.scala | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/pos/caseClassInMethod.scala b/tests/pos/caseClassInMethod.scala index 958e5dd47..2e6484792 100644 --- a/tests/pos/caseClassInMethod.scala +++ b/tests/pos/caseClassInMethod.scala @@ -1,5 +1,5 @@ object t { def f = { object C; case class C(); 1 } - // pending: def g = { case class D(x: Int); object D; 2 } + def g = { case class D(x: Int); object D; 2 } def h = { case class E(y: Int = 10); 3 } } diff --git a/tests/pos/refinedSubtyping.scala b/tests/pos/refinedSubtyping.scala index 329c62314..e6a972e1c 100644 --- a/tests/pos/refinedSubtyping.scala +++ b/tests/pos/refinedSubtyping.scala @@ -60,7 +60,6 @@ class Test3 { y = x } -/* Does not work yet: class Test4 { abstract class A { type T; val xz: Any } @@ -70,4 +69,4 @@ class Test4 { val zz: A { val xz: T } = yy; } -*/ + -- cgit v1.2.3