test/tools/javac/lambda/separate/Test.java

Tue, 12 Mar 2013 16:02:43 +0000

author
mcimadamore
date
Tue, 12 Mar 2013 16:02:43 +0000
changeset 1628
5ddecb91d843
parent 1605
94e67bed460d
child 2255
b2e4c5ca111f
permissions
-rw-r--r--

8009545: Graph inference: dependencies between inference variables should be set during incorporation
Summary: Move all transitivity checks into the incorporation round
Reviewed-by: jjg

mcimadamore@1605 1 /*
mcimadamore@1605 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
mcimadamore@1605 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@1605 4 *
mcimadamore@1605 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@1605 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@1605 7 * published by the Free Software Foundation.
mcimadamore@1605 8 *
mcimadamore@1605 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@1605 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@1605 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@1605 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@1605 13 * accompanied this code).
mcimadamore@1605 14 *
mcimadamore@1605 15 * You should have received a copy of the GNU General Public License version
mcimadamore@1605 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@1605 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@1605 18 *
mcimadamore@1605 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
mcimadamore@1605 20 * or visit www.oracle.com if you need additional information or have any
mcimadamore@1605 21 * questions.
mcimadamore@1605 22 */
mcimadamore@1605 23
mcimadamore@1605 24 /*
mcimadamore@1605 25 * @test
mcimadamore@1605 26 * @compile Foo.java
mcimadamore@1605 27 * @compile Test.java
mcimadamore@1605 28 */
mcimadamore@1605 29 class Test {
mcimadamore@1605 30 void test(FooLib fl) {
mcimadamore@1605 31 fl.m1(x->{});
mcimadamore@1605 32 fl.m2(x->{});
mcimadamore@1605 33 }
mcimadamore@1605 34 }

mercurial