aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1757.scala
blob: 515b4e9bb32b70b61596feeb32c381862045ef2f (plain) (blame)
1
2
3
4
5
6
case class B[T](b: List[Int]) {
  var s: B[Int] = ???
  def cpy[X](b: List[Int] = b): B[X] = new B[X](b)
  s.cpy()
  s.copy()
}