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
This code should not emit any warnings as the foo() statement is not discarded. This behaviour (checking for non-unit statements) is causing an issue for zio-test users that have this warning enabled; see zio/zio#9233 and zio/zio#9552.
The text was updated successfully, but these errors were encountered:
-Wunused has the same open question. It wound up working like -Wmacros:default in Scala 2, where the expansion resolves references but does not introduce new definitions to be checked. Future work would be to offer more control, as -Wmacros:before,after,either,both.
Open ticket about remaining compiletime behavior for that warning. #21805
Oh, I created -Winlined as a placeholder or reminder, but nothing set in stone.
Compiler version
3.3.5, 3.6.3
Minimized code
Output
Compiler warning / error:
Expectation
This code should not emit any warnings as the
foo()
statement is not discarded. This behaviour (checking for non-unit statements) is causing an issue forzio-test
users that have this warning enabled; see zio/zio#9233 and zio/zio#9552.The text was updated successfully, but these errors were encountered: