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/TypeCoercions.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/new/TypeCoercions.java (limited to 'tests/new/TypeCoercions.java') diff --git a/tests/new/TypeCoercions.java b/tests/new/TypeCoercions.java new file mode 100644 index 000000000..a56ab990b --- /dev/null +++ b/tests/new/TypeCoercions.java @@ -0,0 +1,9 @@ +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); + } +} -- cgit v1.2.3