transpiler
transpiler copied to clipboard
the casting addition of assign statement is ignored
in the following code adding or removing the keyword "CASTING" is not changing the result of transpilation. It should either throw the exception not implemented or somehow affect the js code
TYPES:
tv_char_4 TYPE c LENGTH 5,
BEGIN OF ts_test,
a TYPE tv_char_4,
END OF ts_test.
DATA ls_test TYPE ts_test.
FIELD-SYMBOLS <lv> TYPE tv_char_4.
ASSIGN COMPONENT 'A' OF STRUCTURE ls_test TO <lv> CASTING.
WRITE <lv>.
UT fails since field-symbols don't support type casting: https://github.com/abapGit/abapGit/pull/5611
For the top test case, I dont think there is any difference, as the source and target types are the same, so CASTING is not needed?
some CASTING implemented in https://github.com/abaplint/transpiler/pull/476
https://github.com/abaplint/transpiler/pull/747/commits/bb3c1e74f157f3bc26526d24e2a888c5e6d51b57
fixes when using hex values wrongly