@abaplint/cli 2.119.8 → 2.119.9

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.
Files changed (2) hide show
  1. package/build/cli.js +4 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -28710,6 +28710,7 @@ const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_module
28710
28710
  // TODO: refactor all these method parameters to objects, this is getting messy
28711
28711
  class Source {
28712
28712
  static runSyntax(node, input, targetType, writeReference = false, allowGenericDeference = false) {
28713
+ var _a;
28713
28714
  if (node === undefined) {
28714
28715
  return undefined;
28715
28716
  }
@@ -28787,12 +28788,13 @@ class Source {
28787
28788
  {
28788
28789
  const foundType = this.determineType(node, input, targetType);
28789
28790
  const bodyType = conv_body_1.ConvBody.runSyntax(node.findDirectExpression(Expressions.ConvBody), input);
28791
+ const inferred = (_a = node.findDirectExpression(Expressions.TypeNameOrInfer)) === null || _a === void 0 ? void 0 : _a.concatTokens();
28790
28792
  if (new _type_utils_1.TypeUtils(input.scope).isConvable(foundType, bodyType) === false) {
28791
28793
  const message = `CONV: Types not compatible, ${foundType === null || foundType === void 0 ? void 0 : foundType.constructor.name}, ${bodyType === null || bodyType === void 0 ? void 0 : bodyType.constructor.name}`;
28792
28794
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
28793
28795
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
28794
28796
  }
28795
- else if (foundType === null || foundType === void 0 ? void 0 : foundType.isGeneric()) {
28797
+ else if ((foundType === null || foundType === void 0 ? void 0 : foundType.isGeneric()) && inferred !== "#") {
28796
28798
  const message = "Cannot CONV to generic type";
28797
28799
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
28798
28800
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
@@ -56223,7 +56225,7 @@ class Registry {
56223
56225
  }
56224
56226
  static abaplintVersion() {
56225
56227
  // magic, see build script "version.sh"
56226
- return "2.119.8";
56228
+ return "2.119.9";
56227
56229
  }
56228
56230
  getDDICReferences() {
56229
56231
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.119.8",
3
+ "version": "2.119.9",
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.119.8",
41
+ "@abaplint/core": "^2.119.9",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",