summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-01-28 08:42:27 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-01-28 08:42:27 +0100
commitee24807f8706bb91b9d854eaba39f0ddd9c2a054 (patch)
treef690f9838718f0aa4ab9ffea29fa7cb3a7c76443
parent1a7de4314ac72bca81e31ad3ac0af7bee7eed26b (diff)
downloadscala-ee24807f8706bb91b9d854eaba39f0ddd9c2a054.tar.gz
scala-ee24807f8706bb91b9d854eaba39f0ddd9c2a054.tar.bz2
scala-ee24807f8706bb91b9d854eaba39f0ddd9c2a054.zip
Move a test from pos to run to highlight bytecode deficiencies.
We'll address them in subsequent commits.
-rw-r--r--test/files/run/t6259.scala (renamed from test/files/pos/t6259.scala)19
1 files changed, 14 insertions, 5 deletions
diff --git a/test/files/pos/t6259.scala b/test/files/run/t6259.scala
index 43361c417e..a5a7bf9043 100644
--- a/test/files/pos/t6259.scala
+++ b/test/files/run/t6259.scala
@@ -1,5 +1,3 @@
-package t6259
-
import scala.reflect.runtime.universe._
class A[X](implicit val tt: TypeTag[X]) {}
@@ -17,16 +15,15 @@ class G {
object H extends A[String]
}
-object Test {
+object HasX {
val x = {
object InVal extends A[String]
+ InVal
5
}
}
-// Note: Both of these fail right now.
-
trait NeedsEarly {
val x: AnyRef
}
@@ -45,3 +42,15 @@ object DoubleOk extends DoubleTrouble[String]({
InnerTrouble
})
+object Test extends App {
+ B
+ C.D
+ val e = new E {}; e.F
+ val g = new G; g.H
+
+ //locally(HasX.x) TODO sort out VerifyError in HasX$InVal$2$.<init> by accounting for nesting in Namer#inConstructorFlag
+ // locally(Early.x) TODO sort out VerifyError in Early$.<init>
+ // DoubleOk TODO sort out VerifyError in DoubleOk$.<init>
+}
+
+