unison/unison-src/tests/tictactoe0-array-oob1.u
2021-08-24 11:33:27 -07:00

13 lines
225 B
Plaintext

-- board piece
structural type Board = Board Nat Nat Nat
use Board Board
-- uncommenting these gives errors from NPE to array index out of bounds -1, -2
-- x = 1
-- y = 2
ex = match Board 77 88 99 with
Board a b c -> c