diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-23 23:35:17 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:10 +0200 |
commit | a2731a8be2f3434218623c0b0ecd4078107f14a5 (patch) | |
tree | 3077df892ba46e4142cb6a38555cc7604be36222 /compiler/src/dotty/tools/dotc/core/Denotations.scala | |
parent | e2056bb62e8d4ce5806111f0c54f7331eb690f0a (diff) | |
download | dotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.tar.gz dotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.tar.bz2 dotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.zip |
Handle expansion and flattening
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Denotations.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Denotations.scala b/compiler/src/dotty/tools/dotc/core/Denotations.scala index a679cad6f..aa0ea39a2 100644 --- a/compiler/src/dotty/tools/dotc/core/Denotations.scala +++ b/compiler/src/dotty/tools/dotc/core/Denotations.scala @@ -1190,8 +1190,10 @@ object Denotations { recur(path.toTermName, n => wrap(n.toTypeName)) case DerivedTermName(prefix, NameInfo.ModuleClass) => recur(prefix, n => wrap(n.derived(NameInfo.ModuleClass))) - case DerivedTermName(prefix, NameInfo.Qualified(selector, ".")) => + case DerivedTermName(prefix, NameInfo.Select(selector)) => select(recur(prefix), wrap(selector)) + case DerivedTermName(prefix, qual: NameInfo.Qualified) => + recur(prefix, n => wrap(n ++ qual.separator ++ qual.name)) case path: SimpleTermName => def recurSimple(len: Int, wrap: Name => Name): Denotation = { val point = path.lastIndexOf('.', len - 1) |