Wrong error message for concatenated const strings
Submitted by Jacques-Pascal Deplaix
Link to original bug (#676889)
Description
The following test code:
void main()
{
const string s1 = "S1";
const string s1_and_s2 = s1 + "S2";
}
Return these error when compiling:
const-string.vala.c: In function ‘_vala_main’:
const-string.vala.c:18:2: error: invalid initializer
const-string.vala.c:18:37: error: expected ‘,’ or ‘;’ before string constant
Valac takes const string as a define, but it's a const char *.
Edited by Rico Tzschichholz