From 8337964e312849e5a904b3cfbfa1def0cf180a05 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 19 Oct 2011 20:23:13 +0000 Subject: Overhaul of mixin. If extempore is going to fix the hard bugs then first he is going to make them less hard to fix. The major work of interest in here is the decomplification of the bitmap logic. Hopefully this will come in handy for anyone wishing to try out other encodings. --- test/pending/run/t2897.scala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/pending/run/t2897.scala (limited to 'test/pending/run/t2897.scala') diff --git a/test/pending/run/t2897.scala b/test/pending/run/t2897.scala new file mode 100644 index 0000000000..40fd3c2b08 --- /dev/null +++ b/test/pending/run/t2897.scala @@ -0,0 +1,22 @@ +class A { + def f1(t: String) = { + trait T { + def xs = Nil map (_ => t) + } + } + def f2(t: String) = { + def xs = Nil map (_ => t) + } + def f3(t: String) = { + var t1 = 5 + trait T { + def xs = { t1 = 10 ; t } + } + } + def f4() = { + var u = 5 + trait T { + def xs = Nil map (_ => u = 10) + } + } +} -- cgit v1.2.3