class Test { interface F { void _() throws T; } void foo(F f) throws K { } { foo(() -> {}); } }