@abaplint/cli 2.105.24 → 2.105.26
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.
- package/build/cli.js +10 -4
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -22768,8 +22768,14 @@ class TypeUtils {
|
|
|
22768
22768
|
if (source instanceof basic_1.TableType && source.isWithHeader() === false) {
|
|
22769
22769
|
return false;
|
|
22770
22770
|
}
|
|
22771
|
+
else if ((target instanceof basic_1.StringType || target instanceof basic_1.CharacterType)
|
|
22772
|
+
&& source instanceof basic_1.StructureType
|
|
22773
|
+
&& this.isCharLike(source)) {
|
|
22774
|
+
return true;
|
|
22775
|
+
}
|
|
22771
22776
|
else if (source instanceof basic_1.DataReference
|
|
22772
22777
|
|| source instanceof basic_1.ObjectReferenceType
|
|
22778
|
+
|| source instanceof basic_1.StructureType
|
|
22773
22779
|
|| source instanceof basic_1.GenericObjectReferenceType) {
|
|
22774
22780
|
return false;
|
|
22775
22781
|
}
|
|
@@ -31667,8 +31673,8 @@ class ReadTable {
|
|
|
31667
31673
|
const fromSource = node.findExpressionAfterToken("FROM");
|
|
31668
31674
|
if (fromSource) {
|
|
31669
31675
|
const fromType = new source_1.Source().runSyntax(fromSource, scope, filename);
|
|
31670
|
-
if (new _type_utils_1.TypeUtils(scope).isAssignable(fromType,
|
|
31671
|
-
throw new Error("READ TABLE, FROM must be
|
|
31676
|
+
if (new _type_utils_1.TypeUtils(scope).isAssignable(fromType, rowType) === false) {
|
|
31677
|
+
throw new Error("READ TABLE, FROM must be compatible");
|
|
31672
31678
|
}
|
|
31673
31679
|
}
|
|
31674
31680
|
for (const s of sources) {
|
|
@@ -31693,7 +31699,7 @@ class ReadTable {
|
|
|
31693
31699
|
}
|
|
31694
31700
|
else if (t) {
|
|
31695
31701
|
const targetType = new target_1.Target().runSyntax(t, scope, filename);
|
|
31696
|
-
if (new _type_utils_1.TypeUtils(scope).
|
|
31702
|
+
if (new _type_utils_1.TypeUtils(scope).isAssignable(rowType, targetType) === false) {
|
|
31697
31703
|
throw new Error("Incompatible types");
|
|
31698
31704
|
}
|
|
31699
31705
|
}
|
|
@@ -51330,7 +51336,7 @@ class Registry {
|
|
|
51330
51336
|
}
|
|
51331
51337
|
static abaplintVersion() {
|
|
51332
51338
|
// magic, see build script "version.sh"
|
|
51333
|
-
return "2.105.
|
|
51339
|
+
return "2.105.26";
|
|
51334
51340
|
}
|
|
51335
51341
|
getDDICReferences() {
|
|
51336
51342
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.105.
|
|
3
|
+
"version": "2.105.26",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.105.
|
|
41
|
+
"@abaplint/core": "^2.105.26",
|
|
42
42
|
"@types/chai": "^4.3.12",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|