@abaplint/core 2.102.31 → 2.102.32
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.
|
@@ -211,7 +211,7 @@ class TypeUtils {
|
|
|
211
211
|
return false;
|
|
212
212
|
}
|
|
213
213
|
isAssignableStrict(source, target, calculated = false) {
|
|
214
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
214
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
215
215
|
/*
|
|
216
216
|
console.dir(source);
|
|
217
217
|
console.dir(target);
|
|
@@ -300,7 +300,13 @@ class TypeUtils {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
else if (source instanceof basic_1.IntegerType) {
|
|
303
|
-
if (target instanceof basic_1.StringType
|
|
303
|
+
if (target instanceof basic_1.StringType) {
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
else if (target instanceof basic_1.Integer8Type) {
|
|
307
|
+
if (((_h = source.getAbstractTypeData()) === null || _h === void 0 ? void 0 : _h.derivedFromConstant) === true) {
|
|
308
|
+
return true;
|
|
309
|
+
}
|
|
304
310
|
return false;
|
|
305
311
|
}
|
|
306
312
|
}
|
|
@@ -7,7 +7,7 @@ class Constant {
|
|
|
7
7
|
runSyntax(node) {
|
|
8
8
|
// todo: ConcatenatedConstant is not used?
|
|
9
9
|
if (node.findDirectExpression(expressions_1.Integer)) {
|
|
10
|
-
return basic_1.IntegerType.get();
|
|
10
|
+
return basic_1.IntegerType.get({ derivedFromConstant: true });
|
|
11
11
|
}
|
|
12
12
|
else if (node.getFirstToken().getStr().startsWith("'")) {
|
|
13
13
|
let len = node.getFirstToken().getStr().length - 2;
|
package/build/src/registry.js
CHANGED