diff options
Diffstat (limited to 'test/files/neg/t6788.scala')
-rw-r--r-- | test/files/neg/t6788.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t6788.scala b/test/files/neg/t6788.scala new file mode 100644 index 0000000000..77949ed621 --- /dev/null +++ b/test/files/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) +} |