You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Driver.java 450B

123456789101112131415161718192021222324
  1. import org.aspectj.testing.Tester;
  2. // PR#195
  3. public class Driver {
  4. private static java.util.Vector v = new java.util.Vector();
  5. public static void main(String[] args) { test(); }
  6. public static void test() {
  7. long l = foo(42);
  8. Tester.check(l == 42, "foo(42) == 42");
  9. }
  10. private static float foo(float f) {
  11. return f;
  12. }
  13. private static long foo(long l) {
  14. return l;
  15. }
  16. }