diff options
author | Martin Odersky <odersky@gmail.com> | 2013-04-09 11:38:31 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-04-09 11:38:31 +0200 |
commit | 0820a6e44987d69c2ad297330653e49e04e84554 (patch) | |
tree | ad44965b217e9b795e88f42f68cf6fecf499b6d3 /src | |
parent | 9b42bdc7be28737be574980fea0af50e35f31a81 (diff) | |
download | dotty-0820a6e44987d69c2ad297330653e49e04e84554.tar.gz dotty-0820a6e44987d69c2ad297330653e49e04e84554.tar.bz2 dotty-0820a6e44987d69c2ad297330653e49e04e84554.zip |
Fix to typeParamNamed.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 1a99e487b..99f76d214 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -500,7 +500,7 @@ object Types { * no symbol it tries `member` as an alternative. */ def typeParamNamed(name: TypeName)(implicit ctx: Context): Symbol = - typeSymbol.decls.lookup(name) orElse member(name).symbol + classSymbol.decls.lookup(name) orElse member(name).symbol /** The disjunctive normal form of this type. * This collects a set of alternatives, each alternative consisting @@ -1006,7 +1006,7 @@ object Types { final class TermRefBySym(prefix: Type, name: TermName, val fixedSym: TermSymbol) extends TermRef(prefix, name) with HasFixedSym - + final class TermRefWithSignature(prefix: Type, name: TermName, val sig: Signature) extends TermRef(prefix, name) { override def signature(implicit ctx: Context) = sig override def loadDenot(implicit ctx: Context): Denotation = |