sway
sway copied to clipboard
Enforce type annotations for constants
We should ensure all const declarations have explicitly named types and provide a helpful error message when they do not.
const OFFSET_TOKEN_ADDRESS = 32; // forbidden
const OFFSET_TOKEN_ADDRESS: u64 = 32; // allowed
I’d like to help with this.
I understand that this is a compiler and you want me to implement that every conts has a well defined type
I’d like to help with this.
Hello, could I work on this?
Following up on my work on #7042 and #7043, I'd like to continue fixing issues on Sway, please assign me.
GM! i will like to work on this. ETA: 24 hours