aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Namer.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Namer.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala
index bedaf55c3..426213147 100644
--- a/src/dotty/tools/dotc/typer/Namer.scala
+++ b/src/dotty/tools/dotc/typer/Namer.scala
@@ -147,7 +147,6 @@ class Namer { typer: Typer =>
adjustIfModule(new Completer(tree), tree),
privateWithinClass(tree.mods), tree.pos, ctx.source.file))
case tree: MemberDef =>
- var completer = new Completer(tree)
record(tree, ctx.newSymbol(
ctx.owner, tree.name, tree.mods.flags,
adjustIfModule(new Completer(tree), tree),
@@ -385,7 +384,7 @@ class Namer { typer: Typer =>
else tparams map symbolOfTree
def wrapMethType(restpe: Type): Type = {
val monotpe =
- (restpe /: vparamss) { (restpe, params) =>
+ (vparamss :\ restpe) { (params, restpe) =>
val make =
if (params.nonEmpty && (params.head.mods is Implicit)) ImplicitMethodType
else MethodType