diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-22 16:12:16 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-22 16:12:16 +0200 |
commit | 1a3aeb147dff4875d8bf6701571babdaca9d869c (patch) | |
tree | 5463a6047564040ad40e588215d754d1c090a132 /src/dotty/tools/dotc/core/TypeOps.scala | |
parent | c37185d3307e2b02e25e888fd44d5e8bba95aa1d (diff) | |
download | dotty-1a3aeb147dff4875d8bf6701571babdaca9d869c.tar.gz dotty-1a3aeb147dff4875d8bf6701571babdaca9d869c.tar.bz2 dotty-1a3aeb147dff4875d8bf6701571babdaca9d869c.zip |
Resume suspensions also when reading from classfiles
Make treatment in Scala2Unpickler and Namer the same and factor
out common functionality.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeOps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala index 9433cb882..93b1b1f02 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -374,7 +374,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object. if (argSym is BaseTypeArg) forwardRef(argSym, from, to, cls, decls) pref.info match { - case info: TempClassInfo => info.suspensions = (() => forward()) :: info.suspensions // !!! dotty deviation `forward` alone does not eta expand + case info: TempClassInfo => info.addSuspension(forward) case _ => forward() } } |