class Foo { fun bar(name: Int) {} } fun usage(foo: Foo) { foo?.bar(name = 10) }