diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2017-04-06 16:08:28 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan@lightbend.com> | 2017-04-06 18:13:19 -0700 |
commit | afad090d66ff565c856a231f6ae42dd70f75b2fc (patch) | |
tree | b50173267766d4e21d8ea5a99ddbb567189fbd7a /src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | |
parent | 79a7015ae1753328203cef5105f44423505446f1 (diff) | |
download | scala-afad090d66ff565c856a231f6ae42dd70f75b2fc.tar.gz scala-afad090d66ff565c856a231f6ae42dd70f75b2fc.tar.bz2 scala-afad090d66ff565c856a231f6ae42dd70f75b2fc.zip |
Use CompleterWrapper for implicitFactoryMethodCompleter
mkTypeCompleter is not suitable for wrapping
potentially polymorphic completers
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala index fd9a45166e..fea9debe7e 100644 --- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala +++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala @@ -223,7 +223,7 @@ trait MethodSynthesis { val methDef = factoryMeth(classDef.mods & AccessFlags | METHOD | IMPLICIT | SYNTHETIC, classDef.name.toTermName, classDef) val methSym = enterInScope(assignMemberSymbol(methDef)) context.unit.synthetics(methSym) = methDef - methSym setInfo implicitFactoryMethodCompleter(methDef, classDef.symbol, completerOf(methDef).asInstanceOf[LockingTypeCompleter]) + methSym setInfo implicitFactoryMethodCompleter(methDef, classDef.symbol) } |