Skip to content

Show full evaluation of match types in interactive #10886

Closed
@Swoorup

Description

@Swoorup

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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions