From 65d533f5a6df65acd29d70c963926914c2618aa2 Mon Sep 17 00:00:00 2001 From: Kevin Glynn Date: Thu, 13 Oct 2011 16:05:09 +0200 Subject: [PATCH] hmmm, use return when the expression does NOT have void type --- .../antlr3/src/CS2JTranslator/CS2JTransform/NetMaker.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTransform/NetMaker.g b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTransform/NetMaker.g index 8986d0d..5fc824c 100644 --- a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTransform/NetMaker.g +++ b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTransform/NetMaker.g @@ -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); }