[IR] Fix isProperExpect for IrTypeParameter

This commit is contained in:
Ivan Kochurkin
2023-01-02 13:58:44 +01:00
committed by Space Team
parent f17e1314f6
commit 15ad9d134c
@@ -20,6 +20,6 @@ val IrDeclaration.isProperExpect: Boolean
get() = this is IrClass && isExpect ||
this is IrFunction && isExpect ||
this is IrProperty && isExpect ||
(this is IrClass || this is IrFunction || this is IrProperty || this is IrConstructor || this is IrEnumEntry)
(this is IrClass || this is IrFunction || this is IrProperty || this is IrEnumEntry || this is IrTypeParameter)
&& (this.parent as? IrDeclaration)?.isProperExpect ?: false