Is there any reason why `listOf(1, 2.0)` inferred ...
# announcements
m
Is there any reason why
listOf(1, 2.0)
inferred type is
List<Any>
instead of
List<Number>
or should I add it to bug tracker?
youtrack 3
s
Try searching first. It has been discussed on slack before
As far as I can recall it is not easy get a good common super, and can slow down the compiler quite a bit
h
https://youtrack.jetbrains.com/issue/KT-7420 is probably it. Has been open for over 3 years… 😢
m
👍