diff options
Diffstat (limited to 'sources/scalac/transformer/matching/Autom2Scala.java')
-rw-r--r-- | sources/scalac/transformer/matching/Autom2Scala.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scalac/transformer/matching/Autom2Scala.java b/sources/scalac/transformer/matching/Autom2Scala.java index 51a378f960..5fb169d8d9 100644 --- a/sources/scalac/transformer/matching/Autom2Scala.java +++ b/sources/scalac/transformer/matching/Autom2Scala.java @@ -159,7 +159,9 @@ public class Autom2Scala { cf.gen.ValDef( this.curSym, cf.If( _ref( hasnSym ),//cf._hasNext( _iter() ), cf._next( _iter() ), - cf.ignoreValue( curSym.type() ))), + gen.mkDefaultValue(cf.pos,curSym.type()))), + //cf.ignoreValue( curSym.type() ) + body }, body.type() ); } |