`lateinit` cannot be applied to primitive types su...
# codingconventions
m
lateinit
cannot be applied to primitive types such as Strings and Integers
r
I use
Any
as the type when I have to use primitive types and then I cast the var into the required type whenever needed
m
I don’t think that’s the right way to do things
👆 6
👍🏻 1
I’d rather have the
NotNull
delegate or make those nullable
r
Hm it would be better.. I do avoid null types though..