File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/util
presentation-compiler/src/main/dotty/tools/pc/printer
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ object Signatures {
499
499
500
500
def isSyntheticEvidence (name : String ) =
501
501
name.startsWith(NameKinds .ContextBoundParamName .separator)
502
- && symbol.paramSymss.flatten.find(_.name.show == name).exists(_.flags.is (Flags .Implicit ))
502
+ && symbol.paramSymss.flatten.find(_.name.show == name).exists(_.flags.isOneOf (Flags .GivenOrImplicit ))
503
503
504
504
def toTypeParam (tpe : PolyType ): List [Param ] =
505
505
val evidenceParams = (tpe.paramNamess.flatten zip tpe.paramInfoss.flatten).flatMap:
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ class ShortenedTypePrinter(
296
296
val (methodParams, extParams) = splitExtensionParamss(gsym)
297
297
val paramss = methodParams ++ extParams
298
298
lazy val implicitParams : List [Symbol ] =
299
- paramss.flatMap(params => params.filter(p => p.is (Flags .Implicit )))
299
+ paramss.flatMap(params => params.filter(p => p.isOneOf (Flags .GivenOrImplicit )))
300
300
301
301
lazy val implicitEvidenceParams : Set [Symbol ] =
302
302
implicitParams
You can’t perform that action at this time.
0 commit comments