From 144143c2970a1e874d74cdbd0f8c622d4282a3c3 Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 16 Dec 2002 18:51:06 +0000 Subject: initial version --- tests/pureJava/NonConstants.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/pureJava/NonConstants.java (limited to 'tests/pureJava/NonConstants.java') diff --git a/tests/pureJava/NonConstants.java b/tests/pureJava/NonConstants.java new file mode 100644 index 000000000..f3d1468f4 --- /dev/null +++ b/tests/pureJava/NonConstants.java @@ -0,0 +1,20 @@ +public class NonConstants { + private static final int A = 1; + private static final int B = 2; + private static final int C = 3; + private static final int D = 4; + private static final int E = 5; + + public static void main(String[] args) { + NonConstants nc = new NonConstants(); + int x = 10; + + switch(x) { + case (NonConstants).A: break; + case ((NonConstants)null).B: break; //ERR + case (nc).C: break; //ERR + case nc.D: break; //ERR + case ((((NonConstants)))).E: break; + } + } +} -- cgit v1.2.3