larshp / abapOpenChecks

Open source checks for SAP Code Inspector / ABAP Test Cockpit
https://docs.abapopenchecks.org
MIT License
267 stars 79 forks source link

Check 095 - Object / Class member access - false positive #1155

Closed pcf0 closed 2 weeks ago

pcf0 commented 3 weeks ago

If you have a local class (e.g. test class) that refers to a type of the corresponding global class, this check is false positive.

Example:

class-pool.
class zcl_class definition public final create public.
  public section.
    types ty_type type string.
endclass.

class ltcl_error definition final.
  private section.
    data mv_data type zcl_class=>ty_type.
endclass.