diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/CodeFactory.scala | 3 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala index ca44b5609e..6918bf0674 100644 --- a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala +++ b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala @@ -124,6 +124,9 @@ trait CodeFactory { Apply(Select(tree, nme.ne), List(Literal(Constant(null)))) } + final def Get(tree : Tree) + = Apply(Select(tree, nme.get), List()) + // statistics var nremoved = 0 var nsubstituted = 0 diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala index f319ac655c..47e3572180 100644 --- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala +++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala @@ -361,12 +361,12 @@ trait ParallelMatching { r.insert(List(EmptyTree, pat)) }} - val vdef = typedValDef(vsym, Apply(Select(mkIdent(ures), nme.get), List())) + val vdef = typedValDef(vsym, Get(mkIdent(ures))) (uacall, List(vdef), rep.make(ntemps, nrows), nrepFail) case _ => // app.tpe is Option[? <: ProductN[T1,...,Tn]] val uresGet = newVarCapture(ua.pos, app.tpe.typeArgs(0)) - val vdefHead = typedValDef(uresGet, Select(mkIdent(ures), nme.get)) + val vdefHead = typedValDef(uresGet, Get(mkIdent(ures))) val ts = definitions.getProductArgs(uresGet.tpe).get val (vdefs: List[Tree], vsyms: List[Symbol]) = List.unzip( |