Just ran into
https://youtrack.jetbrains.com/issue/KT-16792
I tried it out in java, and it
did work until the nullability annotations were added (
@yan even mentions that adding them is important in the issue). Why does adding those nullability annotations make any difference? I'm just curious, I realise it's a javac bug ultimately