class Test { interface A { void m(); } interface B { void m(); } interface C extends A, B { } { C c = ()-> {}; } }