mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
9 lines
281 B
Java
9 lines
281 B
Java
/* @test /nodynamiccopyright/
|
|
* @bug 8026374
|
|
* @summary Cannot use void as a variable type
|
|
* @compile/fail/ref=MethodVoidParameter.out -XDrawDiagnostics MethodVoidParameter.java
|
|
*/
|
|
public class MethodVoidParameter {
|
|
void method(void v) { }
|
|
void method(void... v) { }
|
|
}
|