Skip to content
Snippets Groups Projects
Commit e836beb9 authored by Régis Blanc's avatar Régis Blanc
Browse files

regression test for updated

parent 2d955609
No related branches found
No related tags found
No related merge requests found
object Array8 {
def foo(a: Array[Int]): Array[Int] = {
require(a.length >= 2)
a.updated(1, 3)
} ensuring(res => res.length == a.length && res(1) == 3)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment