Skip to content

track which value is "expected"/"actual" in infer #2806

Closed
@nikomatsakis

Description

@nikomatsakis

Right now, infer does not track which value (the sub vs super type) is the "expected" one---that is, it does not track which value came from the user and which did not. This basically requires an extra boolean to be passed around. This leads to confusing error messages such as #2721.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions