Skip to content

Extensible records: error message with incorrect LoC #6150

Closed
@cknitt

Description

@cknitt
type t = {x: int, y: string}

type t2 = {x: string, y: float}

type t3 = {...t, ...t2}

(correctly) gives the error message "Two labels are named x".

But the location of the error message is wrong/confusing, as it points to t2, not t3:

Bildschirmfoto 2023-04-14 um 11 18 18

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