]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Support struct initializer list in non-constant array bb85929a76cbb114fd7992b5f30dc105cc673523 115/head
authorSimon Werbeck <simon.werbeck@gmail.com>
Tue, 24 Mar 2020 16:35:09 +0000 (17:35 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 25 Mar 2020 17:04:40 +0000 (18:04 +0100)
commitbb85929a76cbb114fd7992b5f30dc105cc673523
treea2b46a0236f1df6d8718ddbac6ee631d2378b9bd
parent74725956b2c99da3ff289ff2d294c525ff2f85c9
vala: Support struct initializer list in non-constant array

A struct initializer list contained in an array initializer list is now
transformed to a struct creation expression. The pre-existing logic
ensures that constant expressions are not transformed.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/949
tests/Makefile.am
tests/structs/struct-initializer-list-in-array.vala [new file with mode: 0755]
vala/valaarraycreationexpression.vala
vala/valainitializerlist.vala