Closed
Description
x/tools/internal/versions
currently interprets invalid/unknown language versions (""
) as some unknown earliest version. go/types
interprets an unknown language version as "an empty string disables Go language version checks" and treats this as if all language features are allowed. This is closer to treating this as if it is some unknown future version. x/tools
should be consistent with go/types
.
Users of internal/versions x/tools/go/analysis/passes/loopclosure
and x/tools/go/ssa
need to update their interpretation.
Related #65612.