diff --git a/src/ytype.js b/src/ytype.js index b90f4faa..ef98d0ef 100644 --- a/src/ytype.js +++ b/src/ytype.js @@ -707,7 +707,9 @@ export class YType { * @return {YType} */ _copy () { - return new YType(this.name) + const ytype = new YType(this.name) + ytype._legacyTypeRef = this._legacyTypeRef + return ytype } /**