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
Currently, Scala supports suppressing unchecked warning only for single expression:
(x: @unchecked) match { ... }
However, some classes (test cases, for example) tend to have many places where unchecked warnings arise. There should be a way to disable unchecked warnings for the whole class, like this:
@unchecked
objectMyTests { ... }
or disable unchecked warnings for the whole compiler run: