Closed t4ccer closed 2 months ago
The code above is valid, it should compile.
No it is not. Not in Aiken at least. Records aren't allowed to hold functions unfortunately due to how values are encoded on the VM (and specifically, to how Aiken chooses to encode them).
That is however a but with the type-checker here which should catch that.
What Git revision are you using?
Compiled from source at 075668b52ea748cb1cd3bc6723b1add752976f0f
What operating system are you using, and which version?
Describe what the problem is?
When
foo()
is used anywhere in validator code, compiler crashesWhat should be the expected behavior?
The code above is valid, it should compile.