last_pos = min_pos;
}
+ if (m.coroutine) {
+ ccall.add_argument (new CCodeConstant ("NULL"));
+ ccall.add_argument (new CCodeConstant ("NULL"));
+ }
var block = new CCodeBlock ();
if (m.return_type is VoidType || m.return_type.is_real_non_null_struct_type ()) {
block.add_statement (new CCodeExpressionStatement (ccall));
* @return true if the specified method is compatible to this callback
*/
public bool matches_method (Method m, DataType dt) {
- if (m.coroutine) {
+ if (m.coroutine && !(parent_symbol is Signal)) {
// async delegates are not yet supported
return false;
}