CASC-Lang / Yakou

An experimental JVM Language inspired by Rust.
38 stars 2 forks source link

Check array's top dimension has size expression when elements are no provided #37

Closed ChAoSUnItY closed 2 years ago

ChAoSUnItY commented 2 years ago

CASC doesn't allow declaring array without top dimension size provided:

// err
a := [i32;]{}
b := [[i32;];]{}
// ok
c := [i32;10]{}
d := [[i32;];10]{}