diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-28 21:02:42 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-30 17:22:14 +0100 |
commit | e07e9a3986ec59cab1f0ec2b9b4458fd6a64d8c8 (patch) | |
tree | 051fd810ac9f1b690c7e7f1cb56508a2d903ebfd /src/dotty/tools/dotc/core/pickling/UnPickler.scala | |
parent | 6dcd16ab2040a5a337e78bc77e40228dc9944662 (diff) | |
download | dotty-e07e9a3986ec59cab1f0ec2b9b4458fd6a64d8c8.tar.gz dotty-e07e9a3986ec59cab1f0ec2b9b4458fd6a64d8c8.tar.bz2 dotty-e07e9a3986ec59cab1f0ec2b9b4458fd6a64d8c8.zip |
Restructure Try node.
Now Try node always has cases as handlers.
In case handler is an Ident of type Throwable => T
than it's desugared to a CaseDef during parsing.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/UnPickler.scala')
-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 3510462cc..60000441c 100644 --- a/src/dotty/tools/dotc/core/pickling/UnPickler.scala +++ b/src/dotty/tools/dotc/core/pickling/UnPickler.scala @@ -1035,7 +1035,7 @@ class UnPickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot: val block = readTreeRef() val finalizer = readTreeRef() val catches = until(end, readCaseDefRef) - Try(block, Match(EmptyTree, catches), finalizer) + Try(block, catches, finalizer) case THROWtree => Throw(readTreeRef()) |