[FE] Don't check intersection emptiness if there were lower constraints

This commit is contained in:
Victor Petukhov
2022-04-27 10:30:09 +03:00
committed by teamcity
parent d4d45a8410
commit 73be9d0a20
5 changed files with 14 additions and 13 deletions
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.types
enum class EmptyIntersectionTypeKind { NOT_EMPTY_INTERSECTION, MULTIPLE_CLASSES } // TODO: add `SINGLE_FINAL_CLASS` later
// TODO: add `SINGLE_FINAL_CLASS` later to report warnings
enum class EmptyIntersectionTypeKind { NOT_EMPTY_INTERSECTION, MULTIPLE_CLASSES }
fun EmptyIntersectionTypeKind.isDefinitelyEmpty(): Boolean = this == EmptyIntersectionTypeKind.MULTIPLE_CLASSES