Commit ce5f86b
committed
ir: annotate refutable pattern bidings as @unchecked
Beginning in Scala 3.2, refutable pattern bindings will warn by default,
see https://dotty.epfl.ch/docs/reference/changed-features/pattern-bindings.html
Since the scalajs-ir code is unpacked and recompiled from source as
part of the Scala 3 build, which uses -Xfatal-warnings, we suppress
the warning here with an @unchecked annotation to unblock the dotty
PR (scala/scala3#14294) introducing this behavioral change.
This commit does not address such usage in any other portion of the
codebase, which may need to be addressed at a future date.1 parent 12285ab commit ce5f86b
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
| 1206 | + | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| |||
0 commit comments