diff options
author | Paul Phillips <paulp@improving.org> | 2009-06-26 23:00:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-06-26 23:00:55 +0000 |
commit | 7d92d6c60f13066da4a46e1423f3e9f515cc0be0 (patch) | |
tree | 6f4b96a33009a2272162b295eb23c08174426c1e /src | |
parent | 7abf1386eeb30c91bf22f4fc50ab51a767001402 (diff) | |
download | scala-7d92d6c60f13066da4a46e1423f3e9f515cc0be0.tar.gz scala-7d92d6c60f13066da4a46e1423f3e9f515cc0be0.tar.bz2 scala-7d92d6c60f13066da4a46e1423f3e9f515cc0be0.zip |
Fix for #1496.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/CodeFactory.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala index 55edc456db..8a84c7a5f8 100644 --- a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala +++ b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala @@ -110,10 +110,8 @@ trait CodeFactory { var nsubstituted = 0 final def squeezedBlock(vds: List[Tree], exp: Tree)(implicit theOwner: Symbol): Tree = - if (settings_squeeze) - squeezedBlock1(vds, exp) - else - Block(vds,exp) + if (settings_squeeze) Block(Nil, squeezedBlock1(vds, exp)) + else Block(vds, exp) final def squeezedBlock1(vds: List[Tree], exp: Tree)(implicit theOwner: Symbol): Tree = { val tpe = exp.tpe |