import java.util.function.IntFunction; class Outer { public Outer() { } { //wrong number of parameters as well as a wrong expected type final IntFunction aNew = Outer::new; } }