FIR resolve phases: set BODY_RESOLVE phased properly

Before this commit, we never set this phase to declaration or file
This commit is contained in:
Mikhail Glukhikh
2019-12-04 16:24:11 +03:00
parent 26ee02ed02
commit 9782ec1b1e
4 changed files with 4 additions and 5 deletions
@@ -15,7 +15,7 @@ enum class FirResolvePhase {
IMPLICIT_TYPES_BODY_RESOLVE,
BODY_RESOLVE;
val prev: FirResolvePhase get() = values()[ordinal - 1]
val requiredToLaunch: FirResolvePhase get() = if (this == BODY_RESOLVE) STATUS else values()[ordinal - 1]
val next: FirResolvePhase get() = values()[ordinal + 1]