diff options
author | NAME <USER@epfl.ch> | 2008-03-12 11:45:45 +0000 |
---|---|---|
committer | NAME <USER@epfl.ch> | 2008-03-12 11:45:45 +0000 |
commit | 1e01637f897d39719fac79456d274fe8661ce4d6 (patch) | |
tree | 6797708f3038ff21c1cd8960935ad657021966bb /test | |
parent | deab63a2db266412590471834459cc5fa17934e5 (diff) | |
download | scala-1e01637f897d39719fac79456d274fe8661ce4d6.tar.gz scala-1e01637f897d39719fac79456d274fe8661ce4d6.tar.bz2 scala-1e01637f897d39719fac79456d274fe8661ce4d6.zip |
Pending test for #565
Diffstat (limited to 'test')
-rw-r--r-- | test/pending/run/t0565.scala | 22 |
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) +} |