diff options
author | Erik Osheim <d_m@plastic-idolatry.com> | 2012-02-19 10:25:03 -0500 |
---|---|---|
committer | Erik Osheim <d_m@plastic-idolatry.com> | 2012-02-19 11:20:58 -0500 |
commit | cf0ae72aae43dae1e47489fceb684e5448080736 (patch) | |
tree | bc087d70ea864ca8d6a91d6367dcf89c0eb77bb0 /test | |
parent | 4a5c6a01840404edd362bd388e39f68cb6af5dc7 (diff) | |
download | scala-cf0ae72aae43dae1e47489fceb684e5448080736.tar.gz scala-cf0ae72aae43dae1e47489fceb684e5448080736.tar.bz2 scala-cf0ae72aae43dae1e47489fceb684e5448080736.zip |
Fix [@spec A] to correctly induce AnyRef specialization.
While [@specialized A] already tries to include specialization,
a bug in specializedOn prevented this from happening: any empty
list could mean that the type var was unspecialized, or that it
was specialized on everything.
The fix is to have this function create the full list of symbols
in the case where the @specialized annotation doesn't explicitly
include any types.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t3575.check | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/t3575.check b/test/files/run/t3575.check index 9080fd8674..8b935ad4a3 100644 --- a/test/files/run/t3575.check +++ b/test/files/run/t3575.check @@ -1,6 +1,6 @@ Two -Two -Two +Two$mcIL$sp +Two$mcLI$sp Two$mcII$sp TwoLong TwoLong$mcIL$sp @@ -11,8 +11,8 @@ TwoCool$mcIL$sp TwoCool$mcLI$sp TwoCool$mcII$sp TwoShort -TwoShort -TwoShort +TwoShort$mcIL$sp +TwoShort$mcLI$sp TwoShort$mcII$sp TwoMinimal TwoMinimal$mcIL$sp |