sway icon indicating copy to clipboard operation
sway copied to clipboard

Enforce type annotations for constants

Open IGI-111 opened this issue 1 year ago • 5 comments

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

IGI-111 avatar Mar 20 '24 16:03 IGI-111

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

ikemHood avatar Mar 24 '25 16:03 ikemHood

I’d like to help with this.

cryptogru725 avatar Mar 24 '25 17:03 cryptogru725

Hello, could I work on this?

FriendlyLifeguard avatar Mar 25 '25 08:03 FriendlyLifeguard

Following up on my work on #7042 and #7043, I'd like to continue fixing issues on Sway, please assign me.

saimeunt avatar Mar 27 '25 15:03 saimeunt

GM! i will like to work on this. ETA: 24 hours

Sendi0011 avatar Jun 27 '25 21:06 Sendi0011