diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-31 19:01:10 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:12 +0200 |
commit | a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478 (patch) | |
tree | 6203155dd48e40d5a56a5fa458660c6ee903427e /compiler/src/dotty/tools/dotc/core/Definitions.scala | |
parent | 4a54b2c24d6f6feb5864461697f5872df220ba52 (diff) | |
download | dotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.tar.gz dotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.tar.bz2 dotty-a574ba6b70fc8a8dadf4ec493fcb5dc19d1fa478.zip |
Further simplification for Name
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Definitions.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala index a1858e934..d4d652d6b 100644 --- a/compiler/src/dotty/tools/dotc/core/Definitions.scala +++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala @@ -119,7 +119,7 @@ class Definitions { enterTypeParam(cls, name ++ "$T" ++ i.toString, Contravariant, decls) val resParam = enterTypeParam(cls, name ++ "$R", Covariant, decls) val (methodType, parentTraits) = - if (name.startsWith(str.ImplicitFunction)) { + if (name.firstPart.startsWith(str.ImplicitFunction)) { val superTrait = FunctionType(arity).appliedTo(argParams.map(_.typeRef) ::: resParam.typeRef :: Nil) (ImplicitMethodType, ctx.normalizeToClassRefs(superTrait :: Nil, cls, decls)) |