Skip to content

Instantly share code, notes, and snippets.

@mattelacchiato
Created July 30, 2014 12:57
Show Gist options
  • Save mattelacchiato/93ef27b8f8f603f748b1 to your computer and use it in GitHub Desktop.
Save mattelacchiato/93ef27b8f8f603f748b1 to your computer and use it in GitHub Desktop.
import org.junit.Test;
public class MyTest {
private class A {};
private class B extends A {};
private class C {};
private void method(A a) {
System.out.println("A");
}
private void method(B b, C... c) {
System.out.println("B and C");
}
@Test
public void name() {
method(new B());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment