Convert Sealed Class to Enum: Support expect/actual classes

#KT-18912 Fixed
This commit is contained in:
Alexey Sedunov
2017-10-19 21:36:40 +03:00
parent dbd7ceb5fd
commit 9d5d85a1c5
15 changed files with 115 additions and 17 deletions
@@ -34,6 +34,7 @@ import org.jetbrains.kotlin.types.expressions.OperatorConventions
infix fun SearchScope.and(otherScope: SearchScope): SearchScope = intersectWith(otherScope)
infix fun SearchScope.or(otherScope: SearchScope): SearchScope = union(otherScope)
infix fun GlobalSearchScope.or(otherScope: SearchScope): GlobalSearchScope = union(otherScope)
operator fun SearchScope.minus(otherScope: GlobalSearchScope): SearchScope = this and !otherScope
operator fun GlobalSearchScope.not(): GlobalSearchScope = GlobalSearchScope.notScope(this)