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

Show full evaluation of match types in interactive #10886

Closed
Swoorup opened this issue Dec 22, 2020 · 0 comments · Fixed by #13597
Closed

Show full evaluation of match types in interactive #10886

Swoorup opened this issue Dec 22, 2020 · 0 comments · Fixed by #13597

Comments

@Swoorup
Copy link

Swoorup commented Dec 22, 2020

Minimized example

type Channel = "A" | "B"
type SelChannel[C <: Tuple] = C match {
  case x *: xs => x | SelChannel[xs]
  case _ => Nothing
}
 
val a: SelChannel[("A", "B", "C")] = ???

Output

In scala interactive :type prints

scala> :type a
("A" : String) | SelChannel[(("B" : String), ("C" : String))]

Expectation

Shouldn't this instead fully expand?

scala> :type a
("A" : String) | ("B" : String) | ("C" : String)
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