org.aspectj/tests/pureJava/CastingFoldedValues.java

16 lines
361 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
import org.aspectj.testing.Tester;
public class CastingFoldedValues {
static final char i = 'c';
static boolean foundChar = false;
static void foo(char c) { foundChar = true; }
static void foo(int c) { }
public static void main(String[] args) {
foo(i);
Tester.check(foundChar, "forgot to cast folded char down to char type");
}
}