class Foo { fun foo(x: Int) { println("lol") } } fun bar(baz: Foo) { baz.foo(x = 1) }