abaplint icon indicating copy to clipboard operation
abaplint copied to clipboard

prefer_inline: false positive when using interface/class?

Open mbtools opened this issue 4 years ago • 2 comments

When using global interface and class, it says to use inline declaration. Is there a way to do this in ABAP and avoid the error?

https://github.com/mbtools/TEST_INLINE/runs/3920601749

image

Program ZTEST_INLINE_GLOBAL:

  DATA li_test TYPE REF TO zif_test_inline.
  li_test = NEW zcl_test_inline( ).
  li_test->test_1( ).

Interestingly, if class/interface are defined locally in the program, as expected, there's no error (see ZTEST_INLINE_LOCAL).

mbtools avatar Oct 17 '21 21:10 mbtools

ref #2250

mbtools avatar Nov 28 '21 13:11 mbtools

yea, this is also a bug in https://github.com/abapGit/upport

larshp avatar Nov 28 '21 15:11 larshp