Skip to content

Fix string concatenation on local constants

Val Och requested to merge v19930312/vala:fix-local-const-concat into main

Fixes #301. Includes a test.

Note: the following still does not work inside of a function, although I'm not sure what to do about it (other than reworking local constants to use #define + #undef like non-local constants do):

	const string str1 = "Hello";
	const string str2 = ", ";
	const string str3 = "world!";
	const string merged = str1 + str2 + str3;

Merge request reports