class A { fun test() = 1 } fun main(args: Array) { val a = A() a.test() val b = a.test() }