609N/A/*
609N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
609N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
609N/A *
609N/A * This code is free software; you can redistribute it and/or modify it
609N/A * under the terms of the GNU General Public License version 2 only, as
609N/A * published by the Free Software Foundation.
609N/A *
609N/A * This code is distributed in the hope that it will be useful, but WITHOUT
609N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
609N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
609N/A * version 2 for more details (a copy is included in the LICENSE file that
609N/A * accompanied this code).
609N/A *
609N/A * You should have received a copy of the GNU General Public License version
609N/A * 2 along with this work; if not, write to the Free Software Foundation,
609N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
609N/A *
609N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
609N/A * or visit www.oracle.com if you need additional information or have any
609N/A * questions.
609N/A */
609N/A
609N/A// key: compiler.misc.where.intersection
609N/A// key: compiler.misc.where.description.intersection
609N/A// key: compiler.misc.intersection.type
609N/A// key: compiler.misc.incompatible.types
609N/A// key: compiler.err.prob.found.req
609N/A// options: -XDdiags=where
609N/A// run: simple
609N/A
609N/Aclass WhereIntersection {
609N/A interface I1 {}
609N/A interface I2 {}
609N/A class A implements I1, I2 {}
609N/A class B implements I1, I2 {}
609N/A class Test {
609N/A <Z> Z m(Z z1, Z z2) { return null; }
609N/A void main(){
609N/A A a = m(new A(), new B());
609N/A }
609N/A }
609N/A}