@abaplint/core 2.102.36 → 2.102.37

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.
@@ -281,18 +281,23 @@ class TypeUtils {
281
281
  }
282
282
  return true;
283
283
  }
284
- else if (source instanceof basic_1.StructureType && target instanceof basic_1.StructureType) {
285
- const sourceComponents = source.getComponents();
286
- const targetComponents = target.getComponents();
287
- if (sourceComponents.length !== targetComponents.length) {
288
- return false;
289
- }
290
- for (let i = 0; i < sourceComponents.length; i++) {
291
- if (this.isAssignableStrict(sourceComponents[i].type, targetComponents[i].type) === false) {
284
+ else if (source instanceof basic_1.StructureType) {
285
+ if (target instanceof basic_1.StructureType) {
286
+ const sourceComponents = source.getComponents();
287
+ const targetComponents = target.getComponents();
288
+ if (sourceComponents.length !== targetComponents.length) {
292
289
  return false;
293
290
  }
291
+ for (let i = 0; i < sourceComponents.length; i++) {
292
+ if (this.isAssignableStrict(sourceComponents[i].type, targetComponents[i].type) === false) {
293
+ return false;
294
+ }
295
+ }
296
+ return true;
297
+ }
298
+ else if (target instanceof basic_1.CharacterType) {
299
+ return false;
294
300
  }
295
- return true;
296
301
  }
297
302
  else if (source instanceof basic_1.Integer8Type) {
298
303
  if (target instanceof basic_1.IntegerType || target instanceof basic_1.StringType) {
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.36";
68
+ return "2.102.37";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.36",
3
+ "version": "2.102.37",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",