class A { public fun foo() { } } trait Z { fun foo() }