Otherwise, when the function has inline class parameter, we get ICE. We do not get the error without inline class parameter, since we substitute type parameters in limited situations, which includes inline class lowering. #KT-51157 Fixed