critical warning from valac
@chpe
Submitted by Christian Persch Link to original bug (#729806)
Description
Now the input is just stupid, but still valac shouldn't go g_critical :-)
$ cat test.vala public struct Foo { public static string bar { get; set; default = "Foobar"; } static int main(string[] argv) { return 0; } }
$ valac test.vala ** (valac:20083): CRITICAL **: vala_ccode_function_add_declaration: assertion 'self != NULL' failed
** (valac:20083): CRITICAL **: vala_ccode_function_add_assignment: assertion 'self != NULL' failed test.vala:2.3-2.26: error: Non-constant field initializers not supported in this context public static string bar { get; set; default = "Foobar"; } ^^^^^^^^^^^^^^^^^^^^^^^^ Compilation failed: 1 error(s), 0 warning(s)
$ valac --version Vala 0.24.0.37-e935d4 $ # aka vala from git master as of right now
Version: 0.24.x