aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Definitions.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-23 17:41:22 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-23 17:41:22 +0100
commit92ed954f361ed08ef4821afd530357379956904a (patch)
tree0e4df5d262d79225a2cae19620d398c75d1a4c0e /src/dotty/tools/dotc/core/Definitions.scala
parent9e1bf7743355de040a23fbcfe9b1efb9b1db1789 (diff)
downloaddotty-92ed954f361ed08ef4821afd530357379956904a.tar.gz
dotty-92ed954f361ed08ef4821afd530357379956904a.tar.bz2
dotty-92ed954f361ed08ef4821afd530357379956904a.zip
Cleanup of named type creation from SymDenotations.
New operations: - typeRef - termRef - valRef (like termRef, but with NotAMethod signature) - termRefWithSig (like termRef, but with denotation's signature)
Diffstat (limited to 'src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r--src/dotty/tools/dotc/core/Definitions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Definitions.scala b/src/dotty/tools/dotc/core/Definitions.scala
index f7f3bde87..feb7e2b1b 100644
--- a/src/dotty/tools/dotc/core/Definitions.scala
+++ b/src/dotty/tools/dotc/core/Definitions.scala
@@ -42,7 +42,7 @@ class Definitions(implicit ctx: Context) {
val paramDecls = newScope
val typeParam = newSyntheticTypeParam(cls, paramDecls, paramFlags)
def instantiate(tpe: Type) =
- if (tpe.typeParams.nonEmpty) tpe.appliedTo(typeParam.symTypeRef)
+ if (tpe.typeParams.nonEmpty) tpe.appliedTo(typeParam.typeRef)
else tpe
val parents = parentConstrs.toList map instantiate
val parentRefs: List[TypeRef] = ctx.normalizeToRefs(parents, cls, paramDecls)