diff options
Diffstat (limited to 'tests/untried/neg/t6788.scala')
-rw-r--r-- | tests/untried/neg/t6788.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t6788.scala b/tests/untried/neg/t6788.scala new file mode 100644 index 000000000..77949ed62 --- /dev/null +++ b/tests/untried/neg/t6788.scala @@ -0,0 +1,7 @@ +case class B[T](b: T, a: List[Int]) // need two args, B must be polymorphic + +class A { + var s: B[Int] = _ // has to be a var + + s.copy(b = foo) +} |