#SCL-5082 Fixed
spurious self type conformance error with non-top-level classes