@abaplint/transpiler 2.4.16 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/traversal.js +2 -1
- package/package.json +1 -1
package/build/src/traversal.js
CHANGED
|
@@ -336,7 +336,8 @@ class Traversal {
|
|
|
336
336
|
continue;
|
|
337
337
|
}
|
|
338
338
|
const n = Traversal.escapeNamespace(name.toLowerCase()) + "$" + a.getName().toLowerCase();
|
|
339
|
-
|
|
339
|
+
// note: interface inheritenace and super inheritance might be strange,
|
|
340
|
+
ret += "if (this." + n + " === undefined) this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
|
|
340
341
|
}
|
|
341
342
|
for (const i of (intf === null || intf === void 0 ? void 0 : intf.getImplementing()) || []) {
|
|
342
343
|
ret += this.dataFromInterfaces(i.name, scope);
|