Skip to content

Commit

Permalink
THRIFT-5827 enums in typedefs are not resolved in all cases
Browse files Browse the repository at this point in the history
Client: Delphi
Patch: Jens Geyer
  • Loading branch information
Jens-G committed Oct 24, 2024
1 parent 649f477 commit 52ea008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/cpp/src/thrift/generate/t_delphi_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ void t_delphi_generator::generate_enum(t_enum* tenum) {
indent_down();
indent(s_enum) << ")" << render_deprecation_attribute(tenum->annotations_, " ", "") << ";" << '\n' << '\n';
indent_down();

add_defined_type(tenum);
}

std::string t_delphi_generator::make_pascal_string_literal(std::string value) {
Expand Down
1 change: 0 additions & 1 deletion lib/delphi/test/codegen/run-Pascal-Codegen-Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ $FAIL_DELPHI = @(
# unexpected but known bugs (TODO: fix them)
$KNOWN_BUGS = @(
"IgnoreInitialismsTest.thrift",
"JavaDefinitionOrderB.thrift",
"NameConflictTest.thrift"
)

Expand Down

0 comments on commit 52ea008

Please sign in to comment.