mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
10 lines
240 B
Java
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);
|
||
|
}
|
||
|
}
|