https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
m

Michael de Kaste

12/08/2021, 5:49 PM
btw, this happened during my coding today, and I have no idea why the compiler trips:
this works fine
i

ilya.gorbunov

12/08/2021, 6:02 PM
Yes, this is a known problem with type inference: https://youtrack.jetbrains.com/issue/KT-46360
👍 1
m

Michael de Kaste

12/08/2021, 6:07 PM
pretty long persistent problem 🧐
d

Dan Fingal-Surma

12/08/2021, 8:13 PM
I had a similar issue when I tried to forEach a type-inferred map without destructing the entry arg (ie relying on 'it')
3 Views