@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
  }
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.22";
78
+ return "2.120.23";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.22",
3
+ "version": "2.120.23",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",