Skip to content

Code formatter fails when an underscore is used in a big number #79

Description

@bulent2k2

Here is a sample:

clearOutput
val big= 200_000_000
println(big / 100_000.0)

This code compiles and runs. However, when we run "Format Source" command, we get an error:
Unable to format: Invalid literal number: _
and the formatter fails to format the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions