summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorNAME <USER@epfl.ch>2008-03-18 19:46:57 +0000
committerNAME <USER@epfl.ch>2008-03-18 19:46:57 +0000
commit0b15f0e5fed0681ef6c68cc2ebc61dd87611b5ef (patch)
tree5dd5c0d3b4705c365e4cf8bb1537cab517e0c258 /test/pending
parente76edeb541685b342433a4a2b3683e11d579b37a (diff)
downloadscala-0b15f0e5fed0681ef6c68cc2ebc61dd87611b5ef.tar.gz
scala-0b15f0e5fed0681ef6c68cc2ebc61dd87611b5ef.tar.bz2
scala-0b15f0e5fed0681ef6c68cc2ebc61dd87611b5ef.zip
Pending tests for #621, #644
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t0621.scala7
-rw-r--r--test/pending/pos/t0644.scala11
2 files changed, 18 insertions, 0 deletions
diff --git a/test/pending/pos/t0621.scala b/test/pending/pos/t0621.scala
new file mode 100644
index 0000000000..d178bed0fb
--- /dev/null
+++ b/test/pending/pos/t0621.scala
@@ -0,0 +1,7 @@
+object Test {
+ val x1 : List[T] forSome { type T } = List(42)
+ val w1 = x1 match { case y : List[u] => ((z : u) => z)(y.head) }
+
+ val x2 : T forSome { type T } = 42
+ val w2 = x2 match { case y : u => ((z : u) => z)(y) }
+}
diff --git a/test/pending/pos/t0644.scala b/test/pending/pos/t0644.scala
new file mode 100644
index 0000000000..5ad12c3632
--- /dev/null
+++ b/test/pending/pos/t0644.scala
@@ -0,0 +1,11 @@
+class A {
+ def appply(): Int = 0
+ def update(n: Int) {}
+}
+
+class B extends A {
+ this()
+ this()=1
+ super()
+ super()=1
+}