unsupported call on a value-restriction polymorphic const #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repro: examples/polymorphism.aml (polymorphic id/k bound as consts).
Error: codegen: unsupported call (in compile_core_op.go, ~1143/1237).
Minimal repro TBD; the example reliably triggers it.
This must be related to assigning a function pointer to a const. Value restriction probably doesnt apply after module initialization of consts.