interface T { fun test() {} } fun foo() { (object: T {}).test() }