Minor: reformat and fix warnings

This commit is contained in:
Dmitry Petrov
2021-10-18 14:13:08 +03:00
committed by teamcityserver
parent 4fc461a2ff
commit eec16b83c6
@@ -172,9 +172,7 @@ val IrClassSymbol.starProjectedType: IrSimpleType
val IrClass.typeConstructorParameters: Sequence<IrTypeParameter> val IrClass.typeConstructorParameters: Sequence<IrTypeParameter>
get() = get() =
generateSequence( generateSequence(this as IrTypeParametersContainer) { current ->
this as IrTypeParametersContainer,
{ current ->
val parent = current.parent as? IrTypeParametersContainer val parent = current.parent as? IrTypeParametersContainer
when { when {
parent is IrSimpleFunction && parent.isPropertyAccessor -> { parent is IrSimpleFunction && parent.isPropertyAccessor -> {
@@ -195,8 +193,7 @@ val IrClass.typeConstructorParameters: Sequence<IrTypeParameter>
else -> else ->
parent parent
} }
} }.flatMap { it.typeParameters }
).flatMap { it.typeParameters }
fun IrClassifierSymbol.typeWithParameters(parameters: List<IrTypeParameter>): IrSimpleType = fun IrClassifierSymbol.typeWithParameters(parameters: List<IrTypeParameter>): IrSimpleType =
typeWith(parameters.map { it.defaultType }) typeWith(parameters.map { it.defaultType })