# Sema: int casting to u0 returns const value · gitcafe/zig

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

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

Visibility: public

Requested revision: ba31a9469f48065c9ebf935160faffd0f6c9bfdc

Requested commit: ba31a9469f48065c9ebf935160faffd0f6c9bfdc

Commit: ba31a9469f48065c9ebf935160faffd0f6c9bfdc

Tree: 4954ac369623951c5390ab9e2da0e089592f8a4c

Author: Andrew Kelley

Committer: Jakub Konka

## Message

```
Sema: int casting to u0 returns const value

Also shift left with u0 rhs returns lhs even when lhs is runtime known.

```

## Parents

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

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