Expressions of the form arr@index fail for readonly array arr.
In particular, the test case ext-array/pass_array-3.cogent
fails with the message
Parsing...
Resolving dependencies...
Typechecking...
Error: Leftover constraint!
Solved A A! [3] [R] () @take (?6)
in the definition at ("pass_array-3.cogent" (line 2, column 1))
for the function foo
Error: Leftover constraint!
Solved A A! [3] [R] () @take (?6)
in the definition at ("pass_array-3.cogent" (line 2, column 1))
for the function foo
Compilation failed!
I am using Cogent commit cea9dd2d1ee from Sep 25
with flags +builtin-arrays +refinement-types
Expressions of the form
arr@index
fail for readonly arrayarr
. In particular, the test caseext-array/pass_array-3.cogent
fails with the messageI am using Cogent commit cea9dd2d1ee from Sep 25 with flags +builtin-arrays +refinement-types