| commit | e3b78ea4092bd52202168fd27ee888259e5f3a1e | [log] [tgz] |
|---|---|---|
| author | myronahn <myronahn@gmail.com> | Sat May 23 01:08:13 2020 +0700 |
| committer | GitHub <noreply@github.com> | Fri May 22 11:08:13 2020 -0700 |
| tree | 4164316aba80d45e9b94dc3512871780e4f6c33a | |
| parent | ef8fd19a3bbb5098ea13021073daf9a840c6bcc1 [diff] [blame] |
Fix issue with indirect return for C++ member function w/no args
diff --git a/gen/src/write.rs b/gen/src/write.rs index c06fce9..2cf9faf 100644 --- a/gen/src/write.rs +++ b/gen/src/write.rs
@@ -424,7 +424,7 @@ } let indirect_return = indirect_return(efn, types); if indirect_return { - if !efn.args.is_empty() { + if !efn.args.is_empty() || efn.receiver.is_some() { write!(out, ", "); } write_indirect_return_type_space(out, efn.ret.as_ref().unwrap());