Created
December 10, 2013 22:41
-
-
Save pyricau/7901730 to your computer and use it in GitHub Desktop.
Does this compile? Why?
This file contains hidden or 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 java.util.List; | |
public class Test<T> { | |
public static String getFirst(Test test) { | |
return test.strings.get(0); | |
} | |
List<String> strings; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment