Created
July 30, 2014 12:57
-
-
Save mattelacchiato/93ef27b8f8f603f748b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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