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.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala
index e0a65bb52..45f788e15 100644
--- a/src/dotty/tools/dotc/typer/Namer.scala
+++ b/src/dotty/tools/dotc/typer/Namer.scala
@@ -120,7 +120,7 @@ abstract class Namer { typer: Typer =>
sym
}
tree match {
- case tree: ModDefTree =>
+ case tree: MemberDef =>
val sym = createSym(tree.name, tree.mods.flags, privateWithinClass(tree.mods))
ctx.enterSym(sym)
sym