From c09bd7cbe853062853fab0692da1f54135fdbd38 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 17 May 2012 16:17:10 +0200 Subject: A band-aid solution for SI-5803. Since ae5ff662, resetAttrs duplicates trees, which doesn't preserve ApplyConstructor. My attempt to modify TreeCopier to do so proved trickier than expected. In any case, ApplyConstructor is not long for this world, and is only used in tree printing to distinguish `new X` from regular Apply trees, so this should suffice pending full surgery. --- test/files/neg/t5803.check | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/neg/t5803.check (limited to 'test/files/neg/t5803.check') diff --git a/test/files/neg/t5803.check b/test/files/neg/t5803.check new file mode 100644 index 0000000000..6a2de2e1df --- /dev/null +++ b/test/files/neg/t5803.check @@ -0,0 +1,4 @@ +t5803.scala:3: error: could not find implicit value for parameter ev: Nothing + new Foo(): String + ^ +one error found -- cgit v1.2.3