Skip to content

Commit 5a030d8

Browse files
committed
Restore missed @unchecked to avoid warnings when using default values for fields with generic types
1 parent 2ef9e93 commit 5a030d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/magnolia1/impl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ object CaseClassDerivation:
117117
new SerializableFunction0[Option[p]]:
118118
override def apply(): Option[p] =
119119
val v = evaluator()
120-
if (v.isInstanceOf[p]) Some(v.asInstanceOf[p])
120+
if ((v: @unchecked).isInstanceOf[p]) Some(v.asInstanceOf[p])
121121
else None
122122
case _ =>
123123
new SerializableFunction0[Option[p]]:

0 commit comments

Comments
 (0)