I have a fold operation something like the following:
val ops: Seq[Op] ...
(x /: ops) { case (y, MyOp(z)) =>
...
}
An Op can have many types other than MyOp but I know in this instance that the ops are all MyOps so I want to add an @unchecked annotation to removed the compiler warning.
Where should I place the @unchecked in this example?