From 144143c2970a1e874d74cdbd0f8c622d4282a3c3 Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 16 Dec 2002 18:51:06 +0000 Subject: initial version --- tests/new/VoidField.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/new/VoidField.java (limited to 'tests/new/VoidField.java') diff --git a/tests/new/VoidField.java b/tests/new/VoidField.java new file mode 100644 index 000000000..dfbb7eba2 --- /dev/null +++ b/tests/new/VoidField.java @@ -0,0 +1,8 @@ +public class VoidField { + void f; // ERR field is void + public static void main(String[] args) { + void var; // ERR var is void + } + void m(void x) { } // ERR formal is void +} + -- cgit v1.2.3