diff options
author | Martin Odersky <odersky@gmail.com> | 2010-04-13 17:36:54 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-04-13 17:36:54 +0000 |
commit | 9024ffbfbfee948388595936a68a74bfe9ce1fb0 (patch) | |
tree | 18d2636c6b317d5d7fb798d2535bc8a05e248ae9 /src | |
parent | e20c986ba1668abd5f561095aa64cf153cd48227 (diff) | |
download | scala-9024ffbfbfee948388595936a68a74bfe9ce1fb0.tar.gz scala-9024ffbfbfee948388595936a68a74bfe9ce1fb0.tar.bz2 scala-9024ffbfbfee948388595936a68a74bfe9ce1fb0.zip |
fix for usecase in doccomments.
Diffstat (limited to 'src')
-rwxr-xr-x | src/compiler/scala/tools/nsc/ast/DocComments.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala index ae6282d46f..ddf4fb0a23 100755 --- a/src/compiler/scala/tools/nsc/ast/DocComments.scala +++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala @@ -90,7 +90,7 @@ trait DocComments { self: SymbolTable => getDocComment(sym) map getUseCases getOrElse List() } - def useCases(sym: Symbol): List[(Symbol, String, Position)] = useCases(sym, sym) + def useCases(sym: Symbol): List[(Symbol, String, Position)] = useCases(sym, sym.enclClass) /** Returns the javadoc format of doc comment string `s`, including wiki expansion */ @@ -416,10 +416,8 @@ trait DocComments { self: SymbolTable => } for (defn <- defined) yield { - val sym = defn.cloneSymbol(site).setFlag(Flags.SYNTHETIC).setInfo( + defn.cloneSymbol(site).setFlag(Flags.SYNTHETIC).setInfo( substAliases(defn.info).asSeenFrom(site.thisType, defn.owner)) - sym.owner = defn.owner - sym } } } |