aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Definitions.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-20 10:12:18 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-21 18:42:50 +0100
commitdd4c7b86254a96346fcd1a46481df1efd0aad86a (patch)
tree73daf54f11796657cbdfb5792751340797417175 /src/dotty/tools/dotc/core/Definitions.scala
parent84c01ff493b81c0097d1707f64622ade028e53aa (diff)
downloaddotty-dd4c7b86254a96346fcd1a46481df1efd0aad86a.tar.gz
dotty-dd4c7b86254a96346fcd1a46481df1efd0aad86a.tar.bz2
dotty-dd4c7b86254a96346fcd1a46481df1efd0aad86a.zip
Bug fix: newSyntheticTypeParam did not incorporate paramFlags
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 506b46540..2b0180cf5 100644
--- a/src/dotty/tools/dotc/core/Definitions.scala
+++ b/src/dotty/tools/dotc/core/Definitions.scala
@@ -34,7 +34,7 @@ class Definitions {
scope.enter(newSymbol(cls, name, flags | TypeParamCreationFlags, TypeBounds.empty))
private def newSyntheticTypeParam(cls: ClassSymbol, scope: MutableScope, paramFlags: FlagSet, suffix: String = "T0") =
- newTypeParam(cls, suffix.toTypeName.expandedName(cls), ExpandedName, scope)
+ newTypeParam(cls, suffix.toTypeName.expandedName(cls), ExpandedName | paramFlags, scope)
private def specialPolyClass(name: TypeName, paramFlags: FlagSet, parentConstrs: Type*): ClassSymbol = {
val completer = new LazyType {