summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-11-23 14:47:42 +0000
committermihaylov <mihaylov@epfl.ch>2004-11-23 14:47:42 +0000
commite18433d52e211849c036c9396b9e61c5c7b00ada (patch)
tree7d7ae486f7ea5c459d2668d42da45267ebe2f5dc /sources
parente35884ed02bc991d958509a1fa83823161e02f68 (diff)
downloadscala-e18433d52e211849c036c9396b9e61c5c7b00ada.tar.gz
scala-e18433d52e211849c036c9396b9e61c5c7b00ada.tar.bz2
scala-e18433d52e211849c036c9396b9e61c5c7b00ada.zip
- Do not generate $tag methods for function cla...
- Do not generate $tag methods for function classes; this is be done by RefCheck
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/typechecker/Analyzer.scala2
-rw-r--r--sources/scala/tools/scalac/typechecker/Infer.scala3
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
}