mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
hmmm, use return when the expression does NOT have void type
This commit is contained in:
parent
37b80a1fbd
commit
65d533f5a6
@ -972,7 +972,7 @@ scope MkNonGeneric {
|
|||||||
if (delg.Invoke.Params.Count > 0) {
|
if (delg.Invoke.Params.Count > 0) {
|
||||||
adaptor.AddChild(call, mkParams(delg, delg.Invoke.Params, false, tok));
|
adaptor.AddChild(call, mkParams(delg, delg.Invoke.Params, false, tok));
|
||||||
}
|
}
|
||||||
if (returnType.IsA(VoidType, AppEnv)) {
|
if (!returnType.IsA(VoidType, AppEnv)) {
|
||||||
adaptor.AddChild(ret, call);
|
adaptor.AddChild(ret, call);
|
||||||
adaptor.AddChild(method, ret);
|
adaptor.AddChild(method, ret);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user