Created
April 25, 2016 17:57
-
-
Save clayrat/467fe5b3cc5f8f5dc4842cf5603f2cee 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
| package j; | |
| public interface Bar { | |
| } |
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
| package j; | |
| public class Foo<V extends Enum<V> & Bar> {} |
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
| package j; | |
| import java.util.function.Consumer; | |
| public interface FooConsumer extends Consumer<Foo> { | |
| } |
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 j._ | |
| object Main extends App { | |
| new FooConsumer { | |
| override def accept[V <: Enum[V] with Bar](t: Foo[V]): Unit = ??? | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It complains that
acceptoverrides nothing.