Closed mpetruska closed 5 months ago
Does EscrowDatum
contains any opaque type? Could you provide its whole definition ?
It seems to me it does not. It is in a public repo: https://github.com/Danogo2023/daken/blob/master/lib%2Fbond%2Ftypes.ak#L91
Value
is opaque. It maintains specific invariants and thus can't be cast directly from Data. So the compiler is right to prevent this.
I see. Thanks for pointing it out.
What Git revision are you using?
Installed via
nix shell github:aiken-lang/aiken#aiken
.What operating system are you using, and which version?
Describe what the problem is?
Invalid error reported when compiling code in repo https://github.com/Danogo2023/daken :
as the type
EscrowDatum
is not opaque:What should be the expected behavior?
This expression should not be reported as an error.