The problem is this I'm using `D`
# announcements
z
The problem is this I'm using
D
m
interface MyInterface<D : Any>
z
Yeah I just tried and it works. Seems really ugly plus I'm not sure I understand why it doesn't automatically work.
p
By default
D : Any?
, which allows nulls.
You may also change instead to
val MY_MAP = ConcurrentHashMap<Any, Any?>()
z
Yes this is what I'm going to do, thank you!
👍 1