Skip to content

prototext: error parsing "- " #1530

Closed
Closed
@neild

Description

@neild

The recent prototext change to support parsing numbers with whitespace between the minus sign and number (https://go.dev/cl/473015) has introduced a panic when parsing an incomplete number consisting of a -, whitespace, and no further input.

For example, parsing this panics:

s_int32: - # trailing space after -

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