Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

inferred literals and integer-const expressions aren't overflow checked #4220

Copy link
Copy link
@graydon

Description

@graydon
Issue body actions

The most egregious example is: let x:u8 = 10_000; which compiles without complaint. But more generally, if we're going to make a promise to constant-fold the integer-constant grammar, we might well consider overflow checks on all those arithmetic nodes. Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.