Skip to content

Dotty pickles type trees of | and & to applied type tree of fictional symbols #7688

Closed
@bishabosha

Description

@bishabosha

minimized code

Because intersection types and union types are pickled in TASTy to applied type trees of imaginary types scala.& and scala.|, all implementations must intercept these names, when they could be reified as the intrinsic types that they are.

trait A
trait B

type AwithB = A with B // pickles to scala.&[A,B]
type AandB  = A & B    // pickles to scala.&[A,B]

type AorB = A | B      // pickles to scala.|[A,B]

expectation

maybe new tags ANDtpt and ORtpt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions