class Bar { val bar: () -> Unit = {} } fun Bar.test() { bar() }