We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type inserts[a, as <: Tuple] <: Tuple = as match case EmptyTuple => (a *: EmptyTuple) *: EmptyTuple case y *: ys => (a *: y *: ys) *: Tuple.Map[inserts[a, ys], [t <: Tuple] =>> y *: t] type inserts2[a] = [as <: Tuple] =>> inserts[a, as] type A = inserts [1, EmptyTuple] type B = inserts2[1][EmptyTuple] summon[A =:= ((1 *: EmptyTuple) *: EmptyTuple)] summon[B =:= ((1 *: EmptyTuple) *: EmptyTuple)] summon[A =:= B] type H[t <: Tuple] = Tuple.Concat[t, EmptyTuple] summon[H[A] =:= H[B]] // error! summon[Tuple.Concat[A, EmptyTuple] =:= Tuple.Concat[B, EmptyTuple]]
// Cannot prove that ((1 : Int) *: EmptyTuple) *: EmptyTuple =:= Tuple.Concat[B, EmptyTuple]
The snippet should compile.
(it compiles in 3.0.0-M2 but not in 3.0.0-M3)
3.0.0-M2
3.0.0-M3
The text was updated successfully, but these errors were encountered:
Fix scala#10867: Normalize after applyIfParameterized in superType
2655090
6972e06
Merge pull request #13253 from dotty-staging/fix-10867
5e6ccc1
Fix #10867: Normalize after applyIfParameterized in superType
1af0da4
d2b64f2
OlivierBlanvillain
No branches or pull requests
Minimized code
Output
// Cannot prove that ((1 : Int) *: EmptyTuple) *: EmptyTuple =:= Tuple.Concat[B, EmptyTuple]
Expectation
The snippet should compile.
(it compiles in
3.0.0-M2
but not in3.0.0-M3
)The text was updated successfully, but these errors were encountered: