arekolek
04/08/2021, 10:38 AMabstract class Foo<T : ViewBinding>(inflateBinding: (LayoutInflater, ViewGroup?, Boolean) -> T)
class Bar() : Foo<SomeVeryLongLayoutNameBinding>(SomeVeryLongLayoutNameBinding::inflate)
So that I could write this instead:
class Bar() : Foo(SomeVeryLongLayoutNameBinding::inflate)
Currently the best I could come up with is:
class Bar() : Foo<SomeVeryLongLayoutNameBinding>(::inflate)
But it doesn't work when I have multiple classes like Bar
in one file, so I'm wondering if I can do anything to make the compiler figure this out