You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inlinedefcheck1[Tps<:NonEmptyTuple]:Unit=
summonInline[Mirror.Of[Tuple.Head[Tps]]]
inlinedefcheck2[Tps<:NonEmptyTuple]:Unit=typeFromType=Tuple.Head[Tps]
summonInline[Mirror.Of[FromType]]
@main defTest:Unit=
check1[Option[Int] *:EmptyTuple] // Ok
check2[Option[Int] *:EmptyTuple] // Error: FromType is widened to Any in Syntheziser
Output
13| check2[Option[Int] *:EmptyTuple] // Error: FromType is widened to Any in Syntheziser|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|Nogiveninstance of typescala.deriving.Mirror.Of[FromType] was found. Failed to synthesize an instance of typescala.deriving.Mirror.Of[FromType]:|*classAny is not a generic product because it is not a caseclass|*classAny is not a generic sum because it is not a sealedclass|--------------------------------------------------------------------------------------------------------------------
Expectation
FromType alias should make no difference.
The text was updated successfully, but these errors were encountered:
If `MirrorSource.reduce` is given a proxy to an unreduced match type, it
will simply get its supertype `Any`. We need to normalise the
`mirroredType` before attempting to reduce it to a kind of mirror
source.
Fix#19198
Minimized code
Output
Expectation
FromType
alias should make no difference.The text was updated successfully, but these errors were encountered: