flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

[Dart, master] Enum named "value" causes variable name conflict

Open macca717 opened this issue 2 years ago • 4 comments

Declaring an enum name as "value" as in the example below results in a redefined name conflict in the generated dart code.

enum ExampleEnum : uint8
{
    none = 0,
    value = 1,
}

By running flatc --dart --gen-all --gen-object-api minimal.fbs generates the attached invalid dart code in the ExampleEnum class;

minimal_test_enum_generated.dart.txt

macca717 avatar Jul 31 '23 22:07 macca717

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] avatar Jan 30 '24 20:01 github-actions[bot]

This is still an issue

insertjokehere avatar Jan 31 '24 00:01 insertjokehere

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

github-actions[bot] avatar Jul 31 '24 20:07 github-actions[bot]

Bump

macca717 avatar Jul 31 '24 22:07 macca717