From 2fefb37220f82300e2aa44442f1a42261d65e359 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 3 Oct 2010 03:19:21 +0000 Subject: One last batch of test cleanups and I think I'l... One last batch of test cleanups and I think I'll call it a day. If you're worried I didn't leave any for anyone else, let me put your fears to rest. PLENTY left to sift through. No review. --- test/files/neg/t2078.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/neg/t2078.scala (limited to 'test/files/neg/t2078.scala') diff --git a/test/files/neg/t2078.scala b/test/files/neg/t2078.scala new file mode 100644 index 0000000000..a697afc646 --- /dev/null +++ b/test/files/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 +} -- cgit v1.2.3