Before this commit, we compared property visibility with constructor visibility only, which is incorrect. Now we compare property visibility also with class visibility #KT-19613 Fixed