Skip to content

SIP-42 - Support for binary integer literals #4029

@timothyklim

Description

@timothyklim

Steps

Given code like this:

val NalRefIdxMask = 0b011 // NRI

Problem

Scalafmt formats code like this:

error: Invalid literal number, followed by identifier character

Expectation

I would like the formatted output to look like this:

val NalRefIdxMask = 0b011 // NRI

Notes

scala/scala3#19405

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions