d48307ec34
Declarations inside that class are referencing the type parameters of the containing function anyway, since we don't do any remapping. So the resulting IR is slightly more correct, and doesn't lead to type parameter/argument size mismatch error on IrBased/Wrapped-descriptors. This reverts a part of01da7f289b, which looks like it was no longer necessary after8d0ffa1444. #KT-42028 Fixed