summaryrefslogtreecommitdiff
path: root/test/pending/neg/t2078.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-06-22 13:46:34 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-06-22 13:46:34 +0000
commitc50f73ddb1c46acbfd5fca63dd698d92e2b07905 (patch)
treec0948fba419376ba997d7c22b99880aa6a76ad10 /test/pending/neg/t2078.scala
parent85a7be90dabecb162c3c865085e32fc42d19c411 (diff)
downloadscala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.tar.gz
scala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.tar.bz2
scala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.zip
Added test for #2078.
Diffstat (limited to 'test/pending/neg/t2078.scala')
-rw-r--r--test/pending/neg/t2078.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pending/neg/t2078.scala b/test/pending/neg/t2078.scala
new file mode 100644
index 0000000000..a697afc646
--- /dev/null
+++ b/test/pending/neg/t2078.scala
@@ -0,0 +1,9 @@
+class A[-S](y : S) {
+ val f = new { val x = y }
+}
+
+object Test extends Application {
+ val a = new A(1)
+ val b = a : A[Nothing]
+ b.f.x
+}