Skip to content

Inconsistency between reflect Typed and  #12221

Closed
@nicolasstucki

Description

@nicolasstucki

Compiler version

3.0.0-RC3

Issue

Both TypeTests will may match the same tpd.Typed tree

This makes the type hierarchy unsound.

UnapplyTypeTest.unapply only matches tpd.Typed for historical reasons. Back when trees were separated from patterns we needed to handle this specially.

Solution

UnapplyTypeTest.unapply only match tpd.Unapply

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions