fun main() { local class Foo { constructor() /* primary */ { super/*Any*/() /* () */ } @Suppress(names = ["WRONG_MODIFIER_CONTAINING_DECLARATION"]) local companion object Companion { private constructor() /* primary */ { super/*Any*/() /* () */ } fun bar() { } } } Companion.bar() }