diff options
-rw-r--r-- | sources/scala/tools/scalac/typechecker/Analyzer.scala | 2 | ||||
-rw-r--r-- | sources/scala/tools/scalac/typechecker/Infer.scala | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sources/scala/tools/scalac/typechecker/Analyzer.scala b/sources/scala/tools/scalac/typechecker/Analyzer.scala index 690805fbe4..60e5470375 100644 --- a/sources/scala/tools/scalac/typechecker/Analyzer.scala +++ b/sources/scala/tools/scalac/typechecker/Analyzer.scala @@ -2602,7 +2602,7 @@ class Analyzer(global: scalac_Global, descr: AnalyzerPhase) extends Transformer( restype = body1.getType().deconst(); restype = checkNoEscape(tree.pos, restype); context = prevContext; - gen.mkFunction(tree.pos, vparams1, body1, restype, context.owner); + gen.mkFunction(tree.pos, vparams1, body1, restype, context.owner, false); case Tree.TypeApply(fn, args) => diff --git a/sources/scala/tools/scalac/typechecker/Infer.scala b/sources/scala/tools/scalac/typechecker/Infer.scala index 3fec6d6c41..68e21f84d3 100644 --- a/sources/scala/tools/scalac/typechecker/Infer.scala +++ b/sources/scala/tools/scalac/typechecker/Infer.scala @@ -375,7 +375,8 @@ class Infer(global: scalac_Global, gen: TreeGen, make: TreeFactory) extends scal NewArray.ValDef(gen.mkParam(paramsym)), gen.Apply(meth, NewArray.Tree(gen.Ident(meth.pos, paramsym))), meth.getType().resultType(), - getContext.owner) + getContext.owner, + false) case _ => meth } |