Skip to content

Commit cb88398

Browse files
authored
Merge pull request #570 from plokhotnyuk/scala3
Restore missed `@unchecked` to avoid warnings when using default values for fields with generic types
2 parents 2ef9e93 + 5a030d8 commit cb88398

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)