9fd1445631
See the comment in the code for more info. No proper test added because the compiler test infrastructure lacks the ability to run old compiler versions, however I've verified manually that the change fixes the issue. #KT-62531 Fixed