diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-08 19:18:42 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-08 19:18:42 +0100 |
commit | a98d5a2b8788344d2027f01e94a3961179537fb4 (patch) | |
tree | d5c8c8f75f48f3d9cecf5a8196e605fd0d3bb113 /src | |
parent | e5136e1ff3aa8a483f153f0c636e73a3ba1c7574 (diff) | |
download | dotty-a98d5a2b8788344d2027f01e94a3961179537fb4.tar.gz dotty-a98d5a2b8788344d2027f01e94a3961179537fb4.tar.bz2 dotty-a98d5a2b8788344d2027f01e94a3961179537fb4.zip |
Names of created symbols need to be encoded.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index 716e7a8b9..3a05e6038 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -162,12 +162,12 @@ class Namer { typer: Typer => tree match { case tree: TypeDef if tree.isClassDef => record(ctx.newClassSymbol( - ctx.owner, tree.name, tree.mods.flags, + ctx.owner, tree.name.encode.asTypeName, tree.mods.flags, adjustIfModule(new Completer(tree) withDecls newScope, tree), privateWithinClass(tree.mods), tree.pos, ctx.source.file)) case tree: MemberDef => record(ctx.newSymbol( - ctx.owner, tree.name, tree.mods.flags, + ctx.owner, tree.name.encode, tree.mods.flags, adjustIfModule(new Completer(tree), tree), privateWithinClass(tree.mods), tree.pos)) case tree: Import => |