Skip to content

Nuance errors for zero-led literals #9015

@scabug

Description

@scabug

The message should specify "decimal integer literals" instead of "integral values." Hex literals often have leading zeros: 0x00FF. Unexpectedly, hex literals are accepted with no leading digits at all:

scala> 0x
res13: Int = 0

Or should one say, "unhexpectedly."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions