Created
March 31, 2016 12:05
-
-
Save smarter/8ccbd9e8e6cad997eb294c7d18361f1f to your computer and use it in GitHub Desktop.
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
public class A { | |
interface B {}; | |
public static <T extends A & B> T foo() { | |
return null; | |
} | |
public static void main(String[] args) { | |
B b = foo(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment