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 warnings are reported in a phase and -Werror (XfatalWarnings) is on, they will be reported as errors and compilation will crash. Because of that, instead of reporting all warnings from linting in a unit, the compilation will exit with an error after just one phase - therefore it does not report warnings from future phases. it would make more sense to aggregate these warnings and report them as errors after the linting phases.
The text was updated successfully, but these errors were encountered:
It seems that the decision to report warnings differently than in Scala 2 was made here: https://github.com/lampepfl/dotty/pull/2341/files
It was a good decision at the time, but I don't see any strong argument made to do it that way instead of the previous approach. I think we can just go back and change it if users don't have anything against it.
)
Final PR. Adds functionality that changes the behaviour of
fatal-warnings - fixes#18634
PR 5/5 (merge consecutively, per [Nicolas'
suggestion](#18829 (review))
Split up version of #18829
Compiler version
3.3.1
The problem
When warnings are reported in a phase and -Werror (XfatalWarnings) is on, they will be reported as errors and compilation will crash. Because of that, instead of reporting all warnings from linting in a unit, the compilation will exit with an error after just one phase - therefore it does not report warnings from future phases. it would make more sense to aggregate these warnings and report them as errors after the linting phases.
The text was updated successfully, but these errors were encountered: