1
0
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:
Kevin Glynn 2011-10-13 16:05:09 +02:00
parent 37b80a1fbd
commit 65d533f5a6

View File

@ -972,7 +972,7 @@ scope MkNonGeneric {
if (delg.Invoke.Params.Count > 0) {
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(method, ret);
}