abaplint / transpiler

ABAP to JS transpiler & runtime
https://transpiler.abaplint.org
MIT License
82 stars 23 forks source link

eq(): string = integer should work like char = integer #1458

Closed joltdx closed 3 months ago

joltdx commented 3 months ago

Assertion failed at the last line ASSERT txt_string = num:

DATA num TYPE i VALUE 123.
DATA txt_char TYPE c LENGTH 42.
DATA txt_string TYPE string.

txt_char = num.
ASSERT num = txt_char.
ASSERT txt_char = num.

txt_string = num.
ASSERT num = txt_string.
ASSERT txt_string = num.
larshp commented 3 months ago

always another bug 😄