ocen-lang / ocen

Statically typed programming language
https://ocen-lang.github.io/autodoc/
79 stars 7 forks source link

Struct bug #4

Closed Angluca closed 4 months ago

Angluca commented 4 months ago

I'm newbie have test how to set comptime static var in struct, So ...

struct Test {
    let var: u32 //  if has const or let building no error, But always loop can't exits must kill
}
mustafaquraish commented 4 months ago

Parsing is still not super robust... I suspect there's other cases where we might infinite loop too. Thanks for pointing this out. Feel free to reach out on Discord (@segfault404) if you see anything else, more than happy to chat about any feedback you have!