@abaplint/core 2.85.21 → 2.85.22

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.
@@ -67,6 +67,12 @@ class TypeUtils {
67
67
  }
68
68
  isOOAssignable(source, target) {
69
69
  let sid = source.getIdentifier();
70
+ let tid = target.getIdentifier();
71
+ const tname = tid.getName().toUpperCase();
72
+ const sname = sid.getName().toUpperCase();
73
+ if (tname === sname) {
74
+ return true;
75
+ }
70
76
  if (!(sid instanceof types_1.ClassDefinition || sid instanceof types_1.InterfaceDefinition)) {
71
77
  const found = this.scope.findObjectDefinition(sid.getName());
72
78
  if (found) {
@@ -76,7 +82,6 @@ class TypeUtils {
76
82
  return false;
77
83
  }
78
84
  }
79
- let tid = target.getIdentifier();
80
85
  if (!(tid instanceof types_1.ClassDefinition || tid instanceof types_1.InterfaceDefinition)) {
81
86
  const found = this.scope.findObjectDefinition(tid.getName());
82
87
  if (found) {
@@ -86,9 +91,8 @@ class TypeUtils {
86
91
  return false;
87
92
  }
88
93
  }
89
- const tname = tid.getName().toUpperCase();
90
94
  if (sid instanceof types_1.ClassDefinition && tid instanceof types_1.ClassDefinition) {
91
- if (sid.getName().toUpperCase() === tname) {
95
+ if (sname === tname) {
92
96
  return true;
93
97
  }
94
98
  const slist = this.listAllSupers(sid);
@@ -106,7 +110,7 @@ class TypeUtils {
106
110
  }
107
111
  }
108
112
  else if (sid instanceof types_1.InterfaceDefinition && tid instanceof types_1.InterfaceDefinition) {
109
- if (sid.getName().toUpperCase() === tname) {
113
+ if (sname === tname) {
110
114
  return true;
111
115
  }
112
116
  if (sid.getImplementing().some(i => i.name === tname)) {
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.21";
71
+ return "2.85.22";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.21",
3
+ "version": "2.85.22",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",