Open pnkfelix opened 2 years ago
or actually, maybe this is an instance of a more general problem with type declarations? See e.g. #1623
The refined named type works correctly if you switch from untyped to typed run mode in CPO, so I think this is the same as #1677.
Consider the following code:
It runs, and you can do things like
place-d-v0(2, 2)
in the REPL, and you get values you expect.But, as you might have predicted, I wanted to avoid the repeating the refinement annotation, So I tried to make a type,
Coord
.As soon as you uncomment
type Coord = Number % (in-bounds)
above, then the repl complains in response to any interactions , saying: "Could not find type Coord on module definitions://"