summaryrefslogtreecommitdiff
path: root/test/pending/run/t0565.scala
diff options
context:
space:
mode:
authorNAME <USER@epfl.ch>2008-03-12 11:45:45 +0000
committerNAME <USER@epfl.ch>2008-03-12 11:45:45 +0000
commit1e01637f897d39719fac79456d274fe8661ce4d6 (patch)
tree6797708f3038ff21c1cd8960935ad657021966bb /test/pending/run/t0565.scala
parentdeab63a2db266412590471834459cc5fa17934e5 (diff)
downloadscala-1e01637f897d39719fac79456d274fe8661ce4d6.tar.gz
scala-1e01637f897d39719fac79456d274fe8661ce4d6.tar.bz2
scala-1e01637f897d39719fac79456d274fe8661ce4d6.zip
Pending test for #565
Diffstat (limited to 'test/pending/run/t0565.scala')
-rw-r--r--test/pending/run/t0565.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pending/run/t0565.scala b/test/pending/run/t0565.scala
new file mode 100644
index 0000000000..eb6e32e644
--- /dev/null
+++ b/test/pending/run/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)
+}