interface Foo { fun foo() } interface Bar : Foo fun usage(bar: Bar) { bar.foo() }