summaryrefslogtreecommitdiff
path: root/test/files/neg/t0565.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-04 06:22:31 +0000
committerPaul Phillips <paulp@improving.org>2010-10-04 06:22:31 +0000
commitc901a0675711a92ff714cfc909013a67a88c0ca3 (patch)
tree01e73b483cf3e372a0d7be0dab7edf7f2086b1d7 /test/files/neg/t0565.scala
parenta7fd7d6dc257e396cf2cf22a9e0a60c3ce44a992 (diff)
downloadscala-c901a0675711a92ff714cfc909013a67a88c0ca3.tar.gz
scala-c901a0675711a92ff714cfc909013a67a88c0ca3.tar.bz2
scala-c901a0675711a92ff714cfc909013a67a88c0ca3.zip
Another batch of busywork shuffling the content...
Another batch of busywork shuffling the contents of pending around. Can almost see some daylight. No review.
Diffstat (limited to 'test/files/neg/t0565.scala')
-rw-r--r--test/files/neg/t0565.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/neg/t0565.scala b/test/files/neg/t0565.scala
new file mode 100644
index 0000000000..eb6e32e644
--- /dev/null
+++ b/test/files/neg/t0565.scala
@@ -0,0 +1,22 @@
+object Test extends Application {
+
+ class MacGuffin
+
+ object A {
+ var x : { type T >: Null <: AnyRef;
+ val y : T;
+ def z (w : T) : T } =
+ new { type T = String;
+ val y = "foo";
+ def z (w : String) = w + "bar" }
+ lazy val u = { println("u evaluated"); x }
+ def foo (v : => u.type#T) : u.type#T = {
+ x = new { type T = MacGuffin;
+ val y = new MacGuffin;
+ def z (w : MacGuffin) = w }
+ u.z(v)
+ }
+ }
+
+ A.foo(A.u.y)
+}