3789983e89
Reviewed-by: darcy, ihse
15 lines
321 B
Java
15 lines
321 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 1241001
|
|
* @summary The compiler failed to detect duplicate, nested labels.
|
|
* @author turnidge
|
|
*
|
|
* @compile/fail/ref=NestedDuplicateLabels.out -XDrawDiagnostics NestedDuplicateLabels.java
|
|
*/
|
|
|
|
class NestedDuplicateLabels {
|
|
void method() {
|
|
foo: { { foo: {} } }
|
|
}
|
|
}
|