langtools/test/tools/javac/T6224167.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 6150 d055fa8ced62
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren

/*
 * @test  /nodynamiccopyright/
 * @bug 6224167
 * @summary misleading error message when both array and varargs
 *      methods are defined
 * @compile/fail/ref=T6224167.out -XDrawDiagnostics T6224167.java
 */
class T6224167
{
    void printf(String s, Object[] args) { }
    void printf(String s, Object... args) { }
}