Don't enter twice local scopes w/out particular name in FIR tower resolver

This commit is contained in:
Mikhail Glukhikh
2019-10-01 13:02:31 +03:00
parent e48428d39d
commit e276e8d9f3
6 changed files with 46 additions and 32 deletions
@@ -54,15 +54,17 @@ enum class FirPosition(val allowTypeParameters: Boolean = true) {
enum class ProcessorAction {
STOP,
NEXT;
NEXT,
NONE;
operator fun not(): Boolean {
return when (this) {
STOP -> true
NEXT -> false
NONE -> false
}
}
fun stop() = this == STOP
fun next() = this == NEXT
fun next() = this != STOP
}