diff options
Diffstat (limited to 'test/files/neg/t4541.scala')
-rw-r--r-- | test/files/neg/t4541.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/t4541.scala b/test/files/neg/t4541.scala new file mode 100644 index 0000000000..744af1c288 --- /dev/null +++ b/test/files/neg/t4541.scala @@ -0,0 +1,16 @@ + + + + + + +@SerialVersionUID(1L) +final class Sparse[@specialized(Int) T](d: Array[T]) extends Serializable { + protected var data: Array[T] = d + def set(that: Sparse[T]) = { + that.data + } +} + + + |