bazelbuild / bazelbuild/bazel

Backport TypeConstructorValue for `type` alias statements to Bazel 9.x

Open
#30,200 0 comments 0 reactions 1 assignee Claimed by @tetromino View on GitHub
P2 team-Starlark-Interpreter
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

In Bazel 10, `type` alias statements will introduce an eval-time value (not just a compile-time symbol); in other words, in Bazel 10
```bzl
type a = list
print(a)
```
will eval successfully.

We should backport the same behavior to 9.x.

Child issue of #27370

@brandjon FYI

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.