diff --git a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs index b693b05..7f3e9eb 100644 --- a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs +++ b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs @@ -1143,8 +1143,13 @@ namespace Twiglet.CS2J.Translator.TypeRep { public InvokeRepTemplate() { - } + + public InvokeRepTemplate(TypeRepTemplate parent, MethodRepTemplate copyFrom) + : base(parent, copyFrom) + { + } + public InvokeRepTemplate (string retType, string methodName, string[] tParams, List pars) : base(retType, methodName, tParams, pars) { } @@ -2956,7 +2961,7 @@ namespace Twiglet.CS2J.Translator.TypeRep { if (copyFrom.Invoke != null) { - Invoke = copyFrom.Invoke; + Invoke = new InvokeRepTemplate(this, copyFrom.Invoke); } }