aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Symbols.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-10 11:37:30 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-17 11:02:01 +0200
commit8d41e9dcee916e2fa4c7f096eb491d38e1185c1c (patch)
tree4afece7763a8cd157974a4ff7158fef438327fd7 /src/dotty/tools/dotc/core/Symbols.scala
parent8b1e58ffb847706cada8fc5834c5ac6bcfcd8421 (diff)
downloaddotty-8d41e9dcee916e2fa4c7f096eb491d38e1185c1c.tar.gz
dotty-8d41e9dcee916e2fa4c7f096eb491d38e1185c1c.tar.bz2
dotty-8d41e9dcee916e2fa4c7f096eb491d38e1185c1c.zip
Make TypeParamCreation flags depend on owner
Type params should have different flags, depending on whether they are owned by a method or a class. Only class type parameters are marked Deferred, protected, and Local.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index 9d60c9985..ab083a128 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -251,7 +251,7 @@ trait Symbols { this: Context =>
val tparams = tparamBuf.toList
val bounds = boundsFn(trefBuf.toList)
for ((name, tparam, bound) <- (names, tparams, bounds).zipped)
- tparam.denot = SymDenotation(tparam, owner, name, flags | TypeParamCreationFlags, bound)
+ tparam.denot = SymDenotation(tparam, owner, name, flags | owner.typeParamCreationFlags, bound)
tparams
}