summaryrefslogtreecommitdiff
path: root/test/pending/neg/t2078.scala
diff options
context:
space:
mode:
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
+}