1
1
mirror of https://github.com/GaloisInc/cryptol.git synced 2024-12-19 05:51:43 +03:00
cryptol/tests/issues/issue416.cry
Brian Huffman 56824291b2 Add inequality constraints to types of fromThen and fromThenTo.
This ensures that all applications of partial type functions are
well-defined.

Fixes .
2018-07-11 12:58:49 -07:00

6 lines
134 B
Plaintext

f : {n} (fin n, 3 >= width n) => [lengthFromThenTo 1 n 7][3]
f = [1, n .. 7]
g : {n} (fin n, 3 >= width n) => [_][3]
g = [1, n .. 7]