]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Improve check of expression passed to yield
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 20 Jul 2020 08:37:53 +0000 (10:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 20 Jul 2020 08:37:53 +0000 (10:37 +0200)
commit29e6a79ef827c0dba5d3efd35c84b5f1b5410ab3
treea91fa7cd653c98c9cdf73af0bea836fecf47d36d
parentd82530413d02e477550675a0157a4c9f931687f9
vala: Improve check of expression passed to yield

Report a proper error and fix codegen cricical when a signal is given:

  vala_ccode_function_add_expression: assertion 'expression != NULL' failed

See https://gitlab.gnome.org/GNOME/vala/issues/1039
tests/Makefile.am
tests/semantic/yield-call-requires-async-method-2.test [new file with mode: 0644]
vala/valamethodcall.vala