ark-lang / ark

A compiled systems programming language written in Go using the LLVM framework
https://ark-lang.github.io/
MIT License
677 stars 47 forks source link

Bracketed types don't work in cast expressions #656

Closed MovingtoMars closed 8 years ago

MovingtoMars commented 8 years ago

I would like to be able to go (^u8)(thing), but it crashes the compiler.

kiljacken commented 8 years ago

Parsing wise this "should" work. Taking a look at it.

kiljacken commented 8 years ago

The problem occurs as we fail to convert a call expr to a cast at resolve, due to ambiguity between deref expression and pointer types. A fix shouldn't be too bad though.