Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prevent declaring a dynamic-sized string with a literal #760
This compiles (tested as of latest dev branch), but produces unexpected results:
This outputs "unreachable (should be else)". I spent an embarrassingly long time trying to figure out why it was using the wrong string, along with various other weird behaviors.
Attempting to use a string literal in a non-fixed char array declaration should probably throw a compile-time error.