From a06d31f6a2df021acc18b10ad9cad0f80d7498f2 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 29 Jan 2013 11:38:18 +0100 Subject: Keep annotations when computing lubs Integrates annotationsLub into lub. Also fixes SubstSymMap when mapping over annotaion trees. I don't understand what the previous code was supposed to achieve, but it crashed in some of my examples. --- test/files/pos/lubs.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/files/pos/lubs.scala (limited to 'test/files/pos') diff --git a/test/files/pos/lubs.scala b/test/files/pos/lubs.scala new file mode 100644 index 0000000000..d7651f86b0 --- /dev/null +++ b/test/files/pos/lubs.scala @@ -0,0 +1,3 @@ +object Test { + List(new { def f = 1; def g = 1}, new { def f = 2}).map(_.f) +} -- cgit v1.2.3