void () { doTest(""" import java.util.stream.Stream; class Test { static { Stream.of(1.0, 2.0, 3.0).toArray(((/*Array of type 'java.lang.Double[]' expected, 'java.lang.Integer[]' found*/Integer[]::new/**/))); } }"""); }