Skip to content

Commit 2896fb5

Browse files
Failure in replaceSymbol
1 parent 8301c7d commit 2896fb5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scalafix/input/src/main/scala/fix/CanBuildFromSrc.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package fix
66
import scala.language.higherKinds
77

88
import collection.generic.CanBuildFrom
9+
import collection.immutable
910

1011
object CanBuildFromSrc {
1112

@@ -37,6 +38,9 @@ object CanBuildFromSrc {
3738
def f2[T, That](implicit cbf: CanBuildFrom[Nothing, T, That]): Foo[T, That] =
3839
new Foo
3940

41+
def f3[T, That](implicit cbf: CanBuildFrom[Nothing, T, That with immutable.Traversable[_]]): Foo[T, That] =
42+
new Foo
43+
4044
class Foo[T, That](implicit cbf: CanBuildFrom[Nothing, T, That]) {
4145
val b = cbf()
4246
}

scalafix/output/src/main/scala/fix/CanBuildFromSrc.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package fix
55

66
import scala.language.higherKinds
77

8+
import collection.immutable
89
import scala.collection.compat._
910

1011
object CanBuildFromSrc {
@@ -37,6 +38,9 @@ object CanBuildFromSrc {
3738
def f2[T, That](implicit cbf: Factory[T, That]): Foo[T, That] =
3839
new Foo
3940

41+
def f3[T, That](implicit cbf: Factory[T, That with immutable.Iterable[_]]): Foo[T, That] =
42+
new Foo
43+
4044
class Foo[T, That](implicit cbf: Factory[T, That]) {
4145
val b = cbf.newBuilder
4246
}

0 commit comments

Comments
 (0)