FuelLabs/sway

Enforce type annotations for constants

Open

#5758 aperta il 20 mar 2024

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Rust (5421 fork)batch import
ODHack12bugcompiler: frontendgood first issueteam:compiler

Metriche repository

Star
 (61.702 star)
Metriche merge PR
 (Merge medio 22h 6m) (16 PR mergiate in 30 g)

Descrizione

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

Guida contributor