Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Chisel, return the specific type of the integer instead of Type: uint #5705

Closed
DJViau opened this issue Aug 23, 2023 · 1 comment · Fixed by #6620
Closed

In Chisel, return the specific type of the integer instead of Type: uint #5705

DJViau opened this issue Aug 23, 2023 · 1 comment · Fixed by #6620
Labels
T-feature Type: feature

Comments

@DJViau
Copy link
Contributor

DJViau commented Aug 23, 2023

Component

Chisel

Describe the feature you would like

Please return the specific type of an integer in Chisel instead of defaulting to Type: uint.

For example, when you enter type(uint8).max, Chisel returns:

Type: uint
├ Hex: 0xff
└ Decimal: 255

But type(uint8).max has Type: uint8.

See the thread ending with https://warpcast.com/gakonst/0x45eb2f for more detail and some example confusion.

Additional context

Screenshot of confusing chisel behavior
@Evalir
Copy link
Member

Evalir commented Dec 18, 2023

cc @clabby / @refcell chisel is fully alloy, should be fixable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants