Skip to content

go/types, types2: add mechanism to report "last good" source file position in case of a panic #51603

@griesemer

Description

@griesemer

We should track the source positions for the code we're in the process of type-checking so that we can report a position when panicking.

This won't simplify debugging (we can always turn on tracing), but it will make it easier for end-users to possibly find a work-around when presented with a compiler issue.

Metadata

Metadata

Labels

NeedsFixThe path to resolution is known, but the work has not been done.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions