Skip to content

Instantly share code, notes, and snippets.

@Elsopeen
Created June 26, 2020 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elsopeen/aa3f80ad4d2ca1cb1f7c0e4753eaeda0 to your computer and use it in GitHub Desktop.
Save Elsopeen/aa3f80ad4d2ca1cb1f7c0e4753eaeda0 to your computer and use it in GitHub Desktop.
Can't infer types
src\main\java\com\Ultra_Nerd\CodeLyokoRemake15\Util\ClientModEventSubscriber.java:22: error: incompatible types: cannot infer type-variable(s) M,U
ScreenManager.registerFactory(ModContainerTypes.CONTAINER_INFUSING.get(), InfusingChamberScreen::new);
^
(argument mismatch; cannot infer functional interface descriptor for IScreenFactory<ContainerInfusing,U>)
where M,U are type-variables:
M extends Container declared in method <M,U>registerFactory(ContainerType<? extends M>,IScreenFactory<M,U>)
U extends Screen,IHasContainer<M> declared in method <M,U>registerFactory(ContainerType<? extends M>,IScreenFactory<M,U>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment