How can I achieve something like this without usin...
# announcements
j
How can I achieve something like this without using
out
?
k
Can you give us the types of all the relevant stuff?
d
The problem is that
Column<String>
cannot store
Any?
so you must declare the type as
Column<out Any?>
We're using callsite variance here because the variance isn't specified like that in declaration site
The compiler is resolving the type to
Column<out Any>
because Any is the first common parent of String and Int, but the type Any can't be accepted by either object as a parameter where the type is T (
in
position)