@abaplint/core 2.120.22 → 2.120.23
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.
|
@@ -343,6 +343,9 @@ class TypeUtils {
|
|
|
343
343
|
&& (target instanceof basic_1.XStringType || target instanceof basic_1.XSequenceType)) {
|
|
344
344
|
return false;
|
|
345
345
|
}
|
|
346
|
+
if (calculated && source instanceof basic_1.IntegerType && target instanceof basic_1.DateType) {
|
|
347
|
+
return false;
|
|
348
|
+
}
|
|
346
349
|
if (target instanceof basic_1.NumericType
|
|
347
350
|
&& (source instanceof basic_1.CharacterType || source instanceof basic_1.StringType)
|
|
348
351
|
&& ((_a = source.getAbstractTypeData()) === null || _a === void 0 ? void 0 : _a.derivedFromConstant) === true) {
|
|
@@ -61,7 +61,7 @@ class MethodImplementation {
|
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
const start = node.getFirstToken().getStart();
|
|
64
|
-
if ((methodDefinition === null || methodDefinition === void 0 ? void 0 : methodDefinition.isStatic()) === false) {
|
|
64
|
+
if ((methodDefinition === null || methodDefinition === void 0 ? void 0 : methodDefinition.isStatic()) === false || methodDefinition === undefined) {
|
|
65
65
|
input.scope.push(_scope_type_1.ScopeType.MethodInstance, methodName, start, input.filename);
|
|
66
66
|
input.scope.addList(classDefinition.getAttributes().getInstance());
|
|
67
67
|
}
|
package/build/src/registry.js
CHANGED