Skip to content

Instantly share code, notes, and snippets.

@lazyval
Last active April 3, 2016 01:02
Show Gist options
  • Save lazyval/559ca40f022d51a5eebe8bd42cc91fd0 to your computer and use it in GitHub Desktop.
Save lazyval/559ca40f022d51a5eebe8bd42cc91fd0 to your computer and use it in GitHub Desktop.
class Bar<B> {}
class Foo<A> {}
public abstract class JavaApi {
public abstract Foo<Bar> rawMethod();
}
class ScalaApi extends JavaApi {
override def rawMethod: Foo[Bar[_]] = new Foo[Bar[_]]()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment