diff options
-rw-r--r-- | sources/scalac/transformer/ErasurePhase.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scalac/transformer/ErasurePhase.java b/sources/scalac/transformer/ErasurePhase.java index 6bf1ca4532..87fddbf37e 100644 --- a/sources/scalac/transformer/ErasurePhase.java +++ b/sources/scalac/transformer/ErasurePhase.java @@ -81,6 +81,8 @@ public class ErasurePhase extends Phase { case Primitive.IS : return Type.PolyType(tp.typeParams(), Type.MethodType(tp.valueParams(), tp.resultType().erasure())); case Primitive.AS : return tp; case Primitive.BOX: return eraseParams(tp); + case Primitive.AS__ARRAY: + return Type.MethodType(Symbol.EMPTY_ARRAY, definitions.ANY_CLASS.nextType()); default : return tp.erasure(); } } |