robstoll
01/02/2018, 12:08 PMclass A<T>(val a: B<T>.()->Unit)
I tried:
class A<T1, T2: (B<T>.()->Unit)? >(val a: T2)
But that failes stating that an extension function type cannot be used as upper bound. I want to be able to have the parameter nullable in some places and not nullable in others without creating two classes for itdiesieben07
01/02/2018, 12:10 PMT2 : ((B<T>) -> Unit)?
should work fine.robstoll
01/02/2018, 12:11 PMdiesieben07
01/02/2018, 12:12 PMrobstoll
01/02/2018, 12:12 PM