This is fixed in valac >= 0.34.1 (cherry picked from commit a6dbce3c) (cherry picked from commit b283d74a)