diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-12-20 17:05:29 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-12-20 17:05:29 +0100 |
commit | 513312450fddff94371f6ca0afd2524e2a17eed9 (patch) | |
tree | 3b582dffc9da93a20bec08ae6e1c894e4543846f /src/dotty/tools/dotc/core/TypeErasure.scala | |
parent | 473c8318b8206a3415acef27a880c78614dbe064 (diff) | |
download | dotty-513312450fddff94371f6ca0afd2524e2a17eed9.tar.gz dotty-513312450fddff94371f6ca0afd2524e2a17eed9.tar.bz2 dotty-513312450fddff94371f6ca0afd2524e2a17eed9.zip |
TypeErasure.isErasedType: scala.Array is invalid after Erasure.
It should either be erased to j.l.Object or replaced by JavaArrayType.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeErasure.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeErasure.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/TypeErasure.scala b/src/dotty/tools/dotc/core/TypeErasure.scala index 108d862a9..b6d7e491d 100644 --- a/src/dotty/tools/dotc/core/TypeErasure.scala +++ b/src/dotty/tools/dotc/core/TypeErasure.scala @@ -39,7 +39,7 @@ object TypeErasure { case _: ErasedValueType => true case tp: TypeRef => - tp.symbol.isClass && tp.symbol != defn.AnyClass + tp.symbol.isClass && tp.symbol != defn.AnyClass && tp.symbol != defn.ArrayClass case _: TermRef => true case JavaArrayType(elem) => |