Skip to content

Commit

Permalink
Merge pull request #545 from commercetools/remove_the_need_for_import…
Browse files Browse the repository at this point in the history
…in_typeselectors

Remove the need of importing type selectors
  • Loading branch information
benko-balog authored Oct 20, 2023
2 parents 79066ff + c8fd139 commit b0ed4b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ private[generic] object MongoFormatMacros {
// Until this changes we'd need to provide an Any instance or an upper bound instance anyway
firstTypeParam.typeSignature match {
case TypeBounds(_, superType) =>
q"new TypeSelector[$t[$superType]](${t.name.toString}, classOf[$t[$superType]])"
q"new io.sphere.mongo.generic.TypeSelector[$t[$superType]](${t.name.toString}, classOf[$t[$superType]])"
case _ =>
q"new TypeSelector[$t[Any]](${t.name.toString}, classOf[$t[Any]])"
q"new io.sphere.mongo.generic.TypeSelector[$t[Any]](${t.name.toString}, classOf[$t[Any]])"
}
}.toList

Expand Down

0 comments on commit b0ed4b3

Please sign in to comment.