From 506a5e334d57084322fa89119d72fa96beb824b6 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 15 Jun 2015 17:50:04 +0200 Subject: Enable tests that succeed. --- tests/pending/run/t7859/A_1.scala | 11 --------- tests/pending/run/t7859/B_2.scala | 47 --------------------------------------- 2 files changed, 58 deletions(-) delete mode 100644 tests/pending/run/t7859/A_1.scala delete mode 100644 tests/pending/run/t7859/B_2.scala (limited to 'tests/pending/run/t7859') diff --git a/tests/pending/run/t7859/A_1.scala b/tests/pending/run/t7859/A_1.scala deleted file mode 100644 index 74f0709d4..000000000 --- a/tests/pending/run/t7859/A_1.scala +++ /dev/null @@ -1,11 +0,0 @@ -class A(private val x: Int) extends AnyVal - -object A { - val Const = new A(0) -} - -class A1(protected val x: Int) extends AnyVal - -package p { - class A2(private[p] val x: Int) extends AnyVal -} diff --git a/tests/pending/run/t7859/B_2.scala b/tests/pending/run/t7859/B_2.scala deleted file mode 100644 index 052322ef6..000000000 --- a/tests/pending/run/t7859/B_2.scala +++ /dev/null @@ -1,47 +0,0 @@ -class B private (private val b: Int) extends AnyVal -object B { - val Const = new B(0) -} - -// These tests will require erasure to unbox the value class. -// We need to test under joint and separate compilation to check -// that the 'notPRIVATE' flag on the param accessor is pickled. -// -// See also SI-6601. -object Test { - def main(args: Array[String]): Unit = { - unboxA - unboxA1 - unboxA2 - unboxB - } - - def unboxA: Unit = { - val o: Some[A] = Some(A.Const) - val a = o.get - def id(a: A): A = a - id(a) - } - - def unboxA1: Unit = { - val o: Some[A1] = Some(new A1(0)) - val a = o.get - def id(a: A1): A1 = a - id(a) - } - - def unboxA2: Unit = { - import p.A2 - val o: Some[A2] = Some(new A2(0)) - val a = o.get - def id(a: A2): A2 = a - id(a) - } - - def unboxB: Unit = { - val o: Some[B] = Some(B.Const) - val b = o.get - def id(b: B): B = b - id(b) - } -} -- cgit v1.2.3