mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
26
test/langtools/tools/javac/staticImport/Ambig1.java
Normal file
26
test/langtools/tools/javac/staticImport/Ambig1.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 4929736
|
||||
* @summary Missing ambiguity error when two methods are equally specific
|
||||
* @author gafter
|
||||
*
|
||||
* @compile/fail/ref=Ambig1.out -XDrawDiagnostics Ambig1.java
|
||||
*/
|
||||
|
||||
package ambig1;
|
||||
|
||||
import static ambig1.A.f;
|
||||
import static ambig1.B.f;
|
||||
|
||||
class A {
|
||||
static void f(int i) {}
|
||||
}
|
||||
class B {
|
||||
static void f(int i) {}
|
||||
}
|
||||
|
||||
class Main {
|
||||
void g() {
|
||||
f(2);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue