/* * @test /nodynamiccopyright/ * @bug 6939620 * * @summary Switch to 'complex' diamond inference scheme * @author mcimadamore * @compile/fail/ref=Neg01.out Neg01.java -XDrawDiagnostics * */ class Neg01 { Neg01(X x) {} Neg01(X x, Z z) {} void test() { Neg01 n1 = new Neg01<>(""); Neg01 n2 = new Neg01<>(""); Neg01 n3 = new Neg01<>(""); Neg01 n4 = new Neg01<>(""); Neg01 n5 = new Neg01<>(""){}; Neg01 n6 = new Neg01<>(""){}; Neg01 n7 = new Neg01<>(""){}; Neg01 n8 = new Neg01<>(""){}; Neg01 n9 = new Neg01<>("", ""); Neg01 n10 = new Neg01<>("", ""); Neg01 n11 = new Neg01<>("", ""); Foo n12 = new Neg01<>("", ""); Neg01 n13 = new Neg01<>("", ""){}; Neg01 n14 = new Neg01<>("", ""){}; Neg01 n15 = new Neg01<>("", ""){}; Neg01 n16 = new Neg01<>("", ""){}; } }