Mechanism to warn about integer truncation in constants
Open
enhancement
help wanted
- Dominant language
- Dart
- Stars
- 489
- Forks
- 88
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 10
Description
## Motivation
Sometimes one might want to create a `Const` which requires passing an integer, but the integer doesn't "fit" in the specified width of the constant signal. The current behavior is just truncation, meaning the constant value doesn't match the value of the original `int`.
## Desired solution
A warning, error, exception, or something along those lines making it more difficult to accidentally truncate the desired constant value.
Contributor guide
Assessment
This issue has not been assessed yet.