From f08da86cfdc339785e4f0ca81e903135fab38b06 Mon Sep 17 00:00:00 2001 From: Kirill Rakhman Date: Wed, 12 Apr 2023 11:15:12 +0200 Subject: [PATCH] [FIR] Improve comment for ConeIntersectionType --- .../cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt index da448d3ddd5..37492c88910 100644 --- a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt +++ b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt @@ -208,11 +208,9 @@ class ConeRawType private constructor( } } -/* - * Contract of the intersection type: it is flat. It means that - * intersection type can not contains another intersection types - * inside it. To keep this contract construct new intersection types - * only via ConeTypeIntersector +/** + * Contract of the intersection type: it is flat. It means that an intersection type can not contain another intersection type inside it. + * To comply with this contract, construct new intersection types only via [org.jetbrains.kotlin.fir.types.ConeTypeIntersector]. */ class ConeIntersectionType( val intersectedTypes: Collection,