// !DIAGNOSTICS: -UNUSED_VARIABLE interface Foo interface Foo1 interface Foo2 fun test1(foo: Foo) = foo fun test2(): Foo = throw Exception() fun test3() { val f: Foo class Bzz } class A { fun bar() { } } fun test4(a: A) { a.bar() }