Commit 4073d708 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Fix for new instance of a reference to be the same type as the original one

Signed-off-by: Miklos Magyari's avatarMiklos Magyari <>
parent ee60d316
......@@ -158,9 +158,14 @@ public class Reference extends ASTNode implements ILocateableNode, IIncrementall
public Reference(final Identifier modid, Ref_Type reftype, final List<ISubReference> subReferences) {
this(modid, subReferences);
this.reftype = reftype;
/** @return a new instance of this reference */
public Reference newInstance() {
return new Reference(modid, subReferences);
return new Reference(modid, reftype, subReferences);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment