aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/TypeErasure.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-29 11:15:04 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-01 15:04:44 +0200
commit6cdb3d45bf2b0b9ebfad73991be37a80f0c8639f (patch)
treeae0d9e22bdc192681ece64fe0120cf9e39b8899d /src/dotty/tools/dotc/core/TypeErasure.scala
parent4f0af8ec7916503d878712eb99a7a64ea8191bc8 (diff)
downloaddotty-6cdb3d45bf2b0b9ebfad73991be37a80f0c8639f.tar.gz
dotty-6cdb3d45bf2b0b9ebfad73991be37a80f0c8639f.tar.bz2
dotty-6cdb3d45bf2b0b9ebfad73991be37a80f0c8639f.zip
Make ensureMethodic work after erasure.
Previously it didn't, because it created an ExprType, which is illegal after erasure.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeErasure.scala')
-rw-r--r--src/dotty/tools/dotc/core/TypeErasure.scala2
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 fac795ef8..92e32d4b1 100644
--- a/src/dotty/tools/dotc/core/TypeErasure.scala
+++ b/src/dotty/tools/dotc/core/TypeErasure.scala
@@ -164,7 +164,7 @@ object TypeErasure {
else if (sym.isConstructor) outer.addParam(sym.owner.asClass, erase(tp)(erasureCtx))
else erase.eraseInfo(tp, sym)(erasureCtx) match {
case einfo: MethodType if sym.isGetter && einfo.resultType.isRef(defn.UnitClass) =>
- MethodType(Nil, Nil, defn.BoxedUnitClass.typeRef)
+ MethodType(Nil, defn.BoxedUnitClass.typeRef)
case einfo =>
einfo
}