You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bootstrapping the compiler with the `-Ysafe-init` flag, we would
get the following error:
```
[error] -- Error: /Users/rrampersad/Documents/school/URA/dotty/compiler/src/dotty/tools/dotc/transform/MegaPhase.scala:458:7
[error] 458 | for ((phase, idx) <- miniPhases.zipWithIndex) {
[error] | ^
[error] |Cannot prove that the value is fully initialized. Only initialized values may be used as arguments.
[error] |
[error] |The unsafe promotion may cause the following problem:
[error] |Cannot prove that the value is fully initialized. May only assign fully initialized value.
[error] 459 | phase.superPhase = this
[error] 460 | phase.idxInGroup = idx
[error] 461 | }
```
This fixes the initialization order to address this error.
0 commit comments