google / google/protobuf.dart

Generator hangs indefinitely if enum value is named "_"

Open
#736 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

If I create an enum like the following, the compiler will hang until I terminate the process:

```
enum HttpMethod {
_ = 0;
GET = 1;
POST = 2;
PUT = 3;
PATCH = 4;
DELETE = 5;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.