Skip to content

Commit 4fe45ba

Browse files
committed
GenericSignatures needs to consult erasedToObject
Used to hard-code Any/AnyVal/Signature before.
1 parent adc4d3c commit 4fe45ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/GenericSignatures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ object GenericSignatures {
198198
assert(!sym.isAliasType, "Unexpected alias type: " + sym)
199199
typeParamSig(sym.name.lastPart)
200200
}
201-
else if (sym == defn.AnyClass || sym == defn.AnyValClass || sym == defn.SingletonClass)
201+
else if (defn.erasedToObject.contains(sym))
202202
jsig(defn.ObjectType)
203203
else if (sym == defn.UnitClass || sym == defn.BoxedUnitModule)
204204
jsig(defn.BoxedUnitType)

0 commit comments

Comments
 (0)