We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5491e59 commit bdbbc51Copy full SHA for bdbbc51
tests/pos/i1757.scala
@@ -0,0 +1,6 @@
1
+case class B[T](b: List[Int]) {
2
+ var s: B[Int] = ???
3
+ def cpy[X](b: List[Int] = b): B[X] = new B[X](b)
4
+ s.cpy()
5
+ s.copy()
6
+}
0 commit comments