Skip to content

Integer explicit conversions #611

@onbjerg

Description

@onbjerg

Describe the feature

Integers are explicitly convertible to and from all integer types.

If an integer is explicitly converted to a smaller size, higher order bits are discarded.

If an integer is explicitly converted to a larger size, the integer is left padded with 0s.

Integers are also explicitly converted to fixed size bytes of the same size.

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-semaArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with one

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions