Last active
February 15, 2016 05:20
-
-
Save taku0/a13eb529934aacd73dd4 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
interface A { | |
} | |
interface B { | |
} | |
interface C { | |
} | |
// ERROR | |
class Foo1 { | |
public <T extends A & B> void foo(T x) { | |
} | |
public <T extends B & A> void foo(T x) { | |
} | |
} | |
// OK | |
class Foo2 { | |
public <T extends A & B> void foo(T x) { | |
} | |
public <T extends B> void foo(T x) { | |
} | |
} | |
// ERROR | |
class Foo3 { | |
public <T extends A & B> void foo(T x) { | |
} | |
public <T extends A> void foo(T x) { | |
} | |
} | |
// OK | |
class Foo4 { | |
public <T extends A & B> void foo(T x) { | |
} | |
public <T extends B & A & C> void foo(T x) { | |
} | |
} | |
// ERROR | |
class Foo5 { | |
public <T extends A & B & C> void foo(T x) { | |
} | |
public <T extends B & A & C> void foo(T x) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment