Skip to content

Commit

Permalink
Fix tapir on scala 3.4.0: an incorrect form of a tuple type being gen…
Browse files Browse the repository at this point in the history
…erated (#3643)
  • Loading branch information
jchyb committed Mar 28, 2024
1 parent 9467cfc commit 5aec689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ object IntersectionTypeMirror {
private def derivedImpl[A](using Quotes, Type[A]): Expr[IntersectionTypeMirror[A]] = {
import quotes.reflect.*

val tplPrependType = TypeRepr.of[? *: ?]
val tplPrependType = TypeRepr.of[? *: ?] match
case AppliedType(tycon, _) => tycon
val tplConcatType = TypeRepr.of[Tuple.Concat]

def prependTypes(head: TypeRepr, tail: TypeRepr): TypeRepr =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ object UnionTypeMirror {
private def derivedImpl[A](using Quotes, Type[A]): Expr[UnionTypeMirror[A]] = {
import quotes.reflect.*

val tplPrependType = TypeRepr.of[? *: ?]
val tplPrependType = TypeRepr.of[? *: ?] match
case AppliedType(tycon, _) => tycon
val tplConcatType = TypeRepr.of[Tuple.Concat]

def prependTypes(head: TypeRepr, tail: TypeRepr): TypeRepr =
Expand Down

0 comments on commit 5aec689

Please sign in to comment.