diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-08-24 08:33:11 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-08-24 08:37:38 +0200 |
commit | b25b37e9148bec1fc65e0749ea57ed9730a9abec (patch) | |
tree | 851a46b0684a38b0ac3b6cc4e937907e476fa9ea /src/compiler/scala/tools/nsc/transform/LazyVals.scala | |
parent | 811be49d3e9a45ef95df6132754e11360b19d917 (diff) | |
download | scala-b25b37e9148bec1fc65e0749ea57ed9730a9abec.tar.gz scala-b25b37e9148bec1fc65e0749ea57ed9730a9abec.tar.bz2 scala-b25b37e9148bec1fc65e0749ea57ed9730a9abec.zip |
SI-6272 Support lazy vals defined in try in template.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/LazyVals.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/LazyVals.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/LazyVals.scala b/src/compiler/scala/tools/nsc/transform/LazyVals.scala index e8387c80f5..12e2433e0d 100644 --- a/src/compiler/scala/tools/nsc/transform/LazyVals.scala +++ b/src/compiler/scala/tools/nsc/transform/LazyVals.scala @@ -111,7 +111,7 @@ abstract class LazyVals extends Transform with TypingTransformers with ast.TreeD var added = false val stats = for (stat <- body1) yield stat match { - case Block(_, _) | Apply(_, _) | If(_, _, _) if !added => + case Block(_, _) | Apply(_, _) | If(_, _, _) | Try(_, _, _) if !added => // Avoid adding bitmaps when they are fully overshadowed by those // that are added inside loops if (LocalLazyValFinder.find(stat)) { |