# AstGen: add missing comptimeExpr calls · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/71bcbd59936a514843265756ae4ad03a8d656c3c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 71bcbd59936a514843265756ae4ad03a8d656c3c

Requested commit: 71bcbd59936a514843265756ae4ad03a8d656c3c

Commit: 71bcbd59936a514843265756ae4ad03a8d656c3c

Tree: f3d1aac6a545bf37ff3138777eadab2e7c87f4b9

Author: mlugg

Committer: mlugg

## Message

```
AstGen: add missing comptimeExpr calls

Some sub-expressions should always be evaluated at comptime -- in
particular, type expressions, e.g. `E` in `E!T`. However, bugs in this
logic are easy to miss, because the parent scope is usually comptime
anyway!

```

## Parents

- [9a70eeeac52f1526b9df45614b86912565e53e54](https://git.cafe/gitcafe/zig/commit/9a70eeeac52f1526b9df45614b86912565e53e54?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/71bcbd59936a514843265756ae4ad03a8d656c3c?format=markdown)
