diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-06-22 13:46:34 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-06-22 13:46:34 +0000 |
commit | c50f73ddb1c46acbfd5fca63dd698d92e2b07905 (patch) | |
tree | c0948fba419376ba997d7c22b99880aa6a76ad10 /test/pending | |
parent | 85a7be90dabecb162c3c865085e32fc42d19c411 (diff) | |
download | scala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.tar.gz scala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.tar.bz2 scala-c50f73ddb1c46acbfd5fca63dd698d92e2b07905.zip |
Added test for #2078.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/neg/t2078.scala | 9 |
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 +} |