diff options
author | Martin Odersky <odersky@gmail.com> | 2013-05-23 14:33:25 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-05-23 14:33:25 +0200 |
commit | e1be722f469c45e7546388359b5870a07f4c14b8 (patch) | |
tree | 53720d33f176dcb18cb4443867cd378bcdb62ef1 /src/dotty/tools/dotc/core | |
parent | db39f1a5f5062f00e09e20a897e8f6d26e1e4193 (diff) | |
download | dotty-e1be722f469c45e7546388359b5870a07f4c14b8.tar.gz dotty-e1be722f469c45e7546388359b5870a07f4c14b8.tar.bz2 dotty-e1be722f469c45e7546388359b5870a07f4c14b8.zip |
More tweaks to desugaring
(1) Made desugaring reaching a fixed point.
(2) Systematic encoding of names.
(3) Introduced Closure nodes which represent anonymous functions
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/UnPickler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/UnPickler.scala b/src/dotty/tools/dotc/core/pickling/UnPickler.scala index 51816b971..f96115f95 100644 --- a/src/dotty/tools/dotc/core/pickling/UnPickler.scala +++ b/src/dotty/tools/dotc/core/pickling/UnPickler.scala @@ -999,7 +999,7 @@ class UnPickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot: val vparams = until(end, readValDefRef) val applyType = MethodType(vparams map (_.name), vparams map (_.tpt.tpe), body.tpe) val applyMeth = cctx.newSymbol(symbol.owner, nme.apply, Method, applyType) - Function(applyMeth, body.changeOwner(symbol, applyMeth), tpe) + Closure(applyMeth, body.changeOwner(symbol, applyMeth), tpe) case ASSIGNtree => val lhs = readTreeRef() |