Skip to content

Commit

Permalink
scala2 Derive intermediate enum fix
Browse files Browse the repository at this point in the history
  • Loading branch information
googley42 committed Oct 12, 2024
1 parent eb235a7 commit 4bd7568
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ object DeriveSchema {
child.typeSignature
val childClass = child.asClass
if (childClass.isSealed && childClass.isTrait)
knownSubclassesOf(childClass)
Set(childClass.asType.toType)
else if (childClass.isCaseClass || (childClass.isClass && childClass.isAbstract)) {
val st = concreteType(concreteType(tpe, parent.asType.toType), child.asType.toType)
Set(appliedSubtype(st))
Expand Down

0 comments on commit 4bd7568

Please sign in to comment.