Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created August 27, 2013 20:11
Show Gist options
  • Save kohsuke/6358508 to your computer and use it in GitHub Desktop.
Save kohsuke/6358508 to your computer and use it in GitHub Desktop.
public class ErrorCase {
public static class Foo<T> {
public void foo(T t) {}
}
public static class Bar<T> extends Foo<List<T>> {
public void foo(List<String> o) {}
}
public static void main(String[] args) {
new Bar<String>().foo(Collections.<String>emptyList());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment