Empty contracts and structs require dummy fields in Move #12
Labels
deferred
Not a current priority
enhancement
New feature or request
move ir
Code generation for Libra
If one were to write a contract or struct without any fields, like so:
then this will compile and work due to 011118f. However, the way that this works is just to insert a dummy variable into the underlying move struct if the contract is empty. This is not ideal. Ideally, we would not have a move struct for the contract at all if it is empty.
The text was updated successfully, but these errors were encountered: