diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-11-07 16:32:00 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-11-09 19:57:40 +1000 |
commit | f75dbdb251763f1d579f4528b2ec152cfc35e3f6 (patch) | |
tree | 59c068e143e558b3a457bc70c48815b4c2f2a083 /test/files/pos/signatures | |
parent | ced9e167d9d2c9016e76b6db94ceea7335d37bf2 (diff) | |
download | scala-f75dbdb251763f1d579f4528b2ec152cfc35e3f6.tar.gz scala-f75dbdb251763f1d579f4528b2ec152cfc35e3f6.tar.bz2 scala-f75dbdb251763f1d579f4528b2ec152cfc35e3f6.zip |
SI-5938 Test for a FSC bug with mixin, duplicate static forwarders
Under resident compilation, we were getting multiple copies of static
forwarders created for mixed in methods. It seems like the bug was
fixed as a by-product of #4040.
This commit adds a test to show this. I've confirmed that the test
fails appropriately with 2.11.4.
For future reference, before I figured out how to write the test
for this one (test/resident doesn't seem to let you run the code
after compiling it), I was using bash to test as follows:
(export V=2.11.x; (scalac-hash $V sandbox/t5938_1.scala; (for i in 1 2; do echo sandbox/t5938.scala; done; printf '\n') | scalac-hash $V -Xresident); stty echo; scala-hash $V X ; echo ':javap -public X' | scala-hash $V);
Diffstat (limited to 'test/files/pos/signatures')
0 files changed, 0 insertions, 0 deletions