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