Skip to content

Commit f340293

Browse files
committed
Suppress refutable pattern warnings
1 parent 6b0cdde commit f340293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/eu/sim642/adventofcode2024/Day17.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ object Day17 {
102102

103103
object ReverseEngineeredZ3Part2Solution extends Part2Solution {
104104
override def findQuineA(input: Input): Long = {
105-
val Seq(2, 4, 1, bxl1, 7, 5, 1, bxl2, 4, 5, 0, 3, 5, 5, 3, 0) = input.program // TODO: doesn't support other orders of some operations
105+
val Seq(2, 4, 1, bxl1, 7, 5, 1, bxl2, 4, 5, 0, 3, 5, 5, 3, 0) = input.program: @unchecked // TODO: doesn't support other orders of some operations
106106

107107
val ctx = new Context(Map("model" -> "true").asJava)
108108
import ctx._
@@ -211,7 +211,7 @@ object Day17 {
211211

212212
object ReverseEngineeredPart2Solution extends Part2Solution {
213213
override def findQuineA(input: Input): Long = {
214-
val iterProgram :+ 3 :+ 0 = input.program
214+
val iterProgram :+ 3 :+ 0 = input.program: @unchecked
215215

216216
@tailrec
217217
def helper(as: Set[Long], expectedOutputsRev: List[Byte]): Set[Long] = expectedOutputsRev match {

0 commit comments

Comments
 (0)