org.aspectj/tests/new/TypeCoercions.java
2002-12-16 18:51:06 +00:00

10 lines
240 B
Java

import org.aspectj.testing.Tester;
public class TypeCoercions {
public static void main(String[] args) {
char c1 = 'e', c2 = 'f';
Tester.checkEqual("hello".indexOf(c1), 1);
Tester.checkEqual("hello".indexOf(c2), -1);
}
}