Skip to content
New issue

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

summonAll for type alias does not work #19385

Closed
staffanu opened this issue Jan 5, 2024 · 1 comment · Fixed by #19565
Closed

summonAll for type alias does not work #19385

staffanu opened this issue Jan 5, 2024 · 1 comment · Fixed by #19565

Comments

@staffanu
Copy link

staffanu commented Jan 5, 2024

Compiler version

3.4.0-RC1

Minimized code

import scala.compiletime.summonAll

inline def f[M <: Tuple]: Unit = {
  type Alias = Tuple.Map[M, [X] =>> Numeric[X]]
  summonAll[Tuple.Map[M, [X] =>> Numeric[X]]] // compiles
  summonAll[Alias] // error: Tuple element types must be known at compile time
}

val y1 = f[(Int, Int)]

Output

Expectation

Compiles in scala 3.3.1.

@staffanu staffanu added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 5, 2024
@nicolasstucki nicolasstucki added area:inline area:match-types and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 8, 2024
@nicolasstucki nicolasstucki self-assigned this Jan 8, 2024
@nicolasstucki
Copy link
Contributor

Regression in d71ca06.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants