Skip to content

Commit f6ee85b

Browse files
committed
Realized that somehow the synthetic flag on pat...
Realized that somehow the synthetic flag on pattern matcher temp vars was lost somewhere, and classfile debugging info was being generated for every one of them. Fixed. No review.
1 parent 33ff703 commit f6ee85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/compiler/scala/tools/nsc/matching/Matrix.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait Matrix extends MatrixAdditions {
1616
import analyzer.Typer
1717
import CODE._
1818
import Debug._
19-
import Flags.{ TRANS_FLAG }
19+
import Flags.{ TRANS_FLAG, SYNTHETIC }
2020

2121
/** Translation of match expressions.
2222
*
@@ -201,7 +201,7 @@ trait Matrix extends MatrixAdditions {
201201
{
202202
val n: Name = if (name == null) newName(pos, "temp") else name
203203
// careful: pos has special meaning
204-
owner.newVariable(pos, n) setInfo tpe setFlag (0L /: flags)(_|_)
204+
owner.newVariable(pos, n) setInfo tpe setFlag (SYNTHETIC.toLong /: flags)(_|_)
205205
}
206206

207207
def typedValDef(x: Symbol, rhs: Tree) =

0 commit comments

Comments
 (0)