Empty Array constants results in a panic when generating LLVM #861
Labels
accepting contributions
Issues that are suitable to be worked on by anybody, not just maintainers
bug
Defects, unintended behaviour, etc
compiler
Changes related to the compiler
Milestone
Please describe the bug
If an array constant is empty, we don't correctly determine its type. This in turn results in a compile-time panic when generating LLVM code. For example, this snippet:
Produces the following panic:
Given that empty array constants aren't useful (as they can never be modified such that they aren't empty), we should produce a compile-time error/diagnostic when encountering such arrays.
Operating system
Arch Linux
Inko version
main
The text was updated successfully, but these errors were encountered: