ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.6k stars 178 forks source link

internal parser error at crates/parser/src/parser.rs:186:9 #966

Open bshastry opened 9 months ago

bshastry commented 9 months ago
contract C {

    pub fn f(self) -> Array<u256, 1> {
        let my_array: Array<u256, 1> = [0; 1 x]
    }
}

throws

https://github.com/ethereum/fe/blob/c1036e9e58d4e2930782f8e1f016d60e50439560/crates/parser/src/parser.rs#L186

Repro

fe build test.fe

where content of test.fe is contract C above.