icerpc / slicec

The Slice compiler library
Apache License 2.0
13 stars 5 forks source link

Numbers with underscores not handled correctly #586

Closed externl closed 1 year ago

externl commented 1 year ago

Description

This does not complain that 17000000 is too big for uint8. It complains correctly when the underscores are removed.

module Foo

enum E : uint8 {
    A = 17_000_000
}

Reproduction steps

No response

Expected behavior

No response

Actual behavior

No response

Configuration

No response

Additional information

No response