Skip to content

Commit 71de5cb

Browse files
committed
Remove hiding of CanBuildFrom params from the IDE/REPL
Not needed with 2.13 where CanBuildFrom is mostly gone.
1 parent e5cb7ee commit 71de5cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/util/Signatures.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,10 @@ object Signatures {
8484
def toParamss(tp: MethodType)(implicit ctx: Context): List[List[Param]] = {
8585
val rest = tp.resType match {
8686
case res: MethodType =>
87-
// Hide parameter lists consisting only of CanBuildFrom or DummyImplicit,
88-
// we can remove the CanBuildFrom special-case once we switch to the 2.13 standard library.
87+
// Hide parameter lists consisting only of DummyImplicit,
8988
if (res.resultType.isParameterless &&
9089
res.isImplicitMethod &&
9190
res.paramInfos.forall(info =>
92-
info.classSymbol.fullName.toString == "scala.collection.generic.CanBuildFrom" ||
9391
info.classSymbol.derivesFrom(ctx.definitions.DummyImplicitClass)))
9492
Nil
9593
else

0 commit comments

Comments
 (0)