@abaplint/core 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.
@@ -39,6 +39,7 @@ const assert_error_1 = require("../assert_error");
39
39
  // TODO: refactor all these method parameters to objects, this is getting messy
40
40
  class Source {
41
41
  static runSyntax(node, input, targetType, writeReference = false, allowGenericDeference = false) {
42
+ var _a;
42
43
  if (node === undefined) {
43
44
  return undefined;
44
45
  }
@@ -116,12 +117,13 @@ class Source {
116
117
  {
117
118
  const foundType = this.determineType(node, input, targetType);
118
119
  const bodyType = conv_body_1.ConvBody.runSyntax(node.findDirectExpression(Expressions.ConvBody), input);
120
+ const inferred = (_a = node.findDirectExpression(Expressions.TypeNameOrInfer)) === null || _a === void 0 ? void 0 : _a.concatTokens();
119
121
  if (new _type_utils_1.TypeUtils(input.scope).isConvable(foundType, bodyType) === false) {
120
122
  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}`;
121
123
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
122
124
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
123
125
  }
124
- else if (foundType === null || foundType === void 0 ? void 0 : foundType.isGeneric()) {
126
+ else if ((foundType === null || foundType === void 0 ? void 0 : foundType.isGeneric()) && inferred !== "#") {
125
127
  const message = "Cannot CONV to generic type";
126
128
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
127
129
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.119.8";
77
+ return "2.119.9";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.119.8",
3
+ "version": "2.119.9",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",