@abaplint/runtime 2.13.8 → 2.13.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.
@@ -149,6 +149,11 @@ function assign(input) {
149
149
  if (input.source instanceof types_1.Table && input.source.getOptions()?.withHeader === true) {
150
150
  input.target.assign(input.source.getHeader());
151
151
  }
152
+ else if (input.target.getType() instanceof types_1.Table
153
+ && !(input.source instanceof types_1.Table)
154
+ && !(input.source instanceof types_1.HashedTable)) {
155
+ throw new Error("ASSIGN_TYPE_CONFLICT");
156
+ }
152
157
  else {
153
158
  if (input.casting) {
154
159
  input.target.setCasting();
@@ -18,6 +18,7 @@ function find(input, options) {
18
18
  abap.builtin.sy.get().subrc.set(0);
19
19
  return;
20
20
  }
21
+ s = s.replace(/\\/g, "\\\\");
21
22
  s = s.replace(/\[/g, "\\[");
22
23
  s = s.replace(/\]/g, "\\]");
23
24
  s = s.replace(/\?/g, "\\?");
@@ -14,6 +14,7 @@ export declare class FieldSymbol {
14
14
  clone(): void;
15
15
  getQualifiedName(): any;
16
16
  assign(pointer: PointerType): void;
17
+ getType(): PointerType;
17
18
  setCasting(): void;
18
19
  unassign(): void;
19
20
  isAssigned(): boolean;
@@ -26,6 +26,9 @@ class FieldSymbol {
26
26
  assign(pointer) {
27
27
  this.pointer = pointer;
28
28
  }
29
+ getType() {
30
+ return this.type;
31
+ }
29
32
  setCasting() {
30
33
  this.casting = true;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.8",
3
+ "version": "2.13.9",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",