[FIR] Improve comment for ConeIntersectionType

This commit is contained in:
Kirill Rakhman
2023-04-12 11:15:12 +02:00
committed by Space Team
parent 35c6da1aa7
commit f08da86cfd
@@ -208,11 +208,9 @@ class ConeRawType private constructor(
} }
} }
/* /**
* Contract of the intersection type: it is flat. It means that * Contract of the intersection type: it is flat. It means that an intersection type can not contain another intersection type inside it.
* intersection type can not contains another intersection types * To comply with this contract, construct new intersection types only via [org.jetbrains.kotlin.fir.types.ConeTypeIntersector].
* inside it. To keep this contract construct new intersection types
* only via ConeTypeIntersector
*/ */
class ConeIntersectionType( class ConeIntersectionType(
val intersectedTypes: Collection<ConeKotlinType>, val intersectedTypes: Collection<ConeKotlinType>,