Skip to content

Instantly share code, notes, and snippets.

@clayrat
Created April 25, 2016 17:57
Show Gist options
  • Select an option

  • Save clayrat/467fe5b3cc5f8f5dc4842cf5603f2cee to your computer and use it in GitHub Desktop.

Select an option

Save clayrat/467fe5b3cc5f8f5dc4842cf5603f2cee to your computer and use it in GitHub Desktop.
package j;
public interface Bar {
}
package j;
public class Foo<V extends Enum<V> & Bar> {}
package j;
import java.util.function.Consumer;
public interface FooConsumer extends Consumer<Foo> {
}
import j._
object Main extends App {
new FooConsumer {
override def accept[V <: Enum[V] with Bar](t: Foo[V]): Unit = ???
}
}
@clayrat
Copy link
Copy Markdown
Author

clayrat commented Apr 25, 2016

It complains that accept overrides nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment