Skip to content

Commit f0eb2bb

Browse files
committed
Test IArray[Any]
1 parent dbb83ca commit f0eb2bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run/iarrays.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ object Test extends App {
5050
assert(reduce(is, 0, _ + _) == 6)
5151

5252
val IArray(1, 2, 3) = xs
53+
54+
val as: IArray[Any] = IArray(1, "hello")
55+
assert(as(as.length - 1) == "hello")
56+
5357
}

0 commit comments

Comments
 (0)