From ad51d8295388c02ca9160177aaba1b7e490eb5c2 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 1 Jul 2012 12:42:42 +0200 Subject: SI-5489 Avoid accidentally adding members to Object in erasure. `Symbol#classBound` assumed that `refinedType` would return a a type based on new refinement class symbol; but that isn't so during erasure. Instead, it returns the first super class, into which we entered new members. Needless to say, the next run of the resident compiler didn't take kindly to these hijinks. To remedy the situation, I've added (yet another) condition on `phase.erasedTypes`. --- test/files/res/t5489.res | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/files/res/t5489.res (limited to 'test/files/res/t5489.res') diff --git a/test/files/res/t5489.res b/test/files/res/t5489.res new file mode 100644 index 0000000000..5b787b7765 --- /dev/null +++ b/test/files/res/t5489.res @@ -0,0 +1,2 @@ +t5489/t5489.scala +t5489/t5489.scala \ No newline at end of file -- cgit v1.2.3