mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-3806 Swift generator does not handle self-referring structs
Client: Swift Patch: Stig Bakken <stig@zedge.net> This closes #997
This commit is contained in:
parent
b749c2603e
commit
ad3714ac3d
@ -448,7 +448,7 @@ void t_swift_generator::generate_swift_struct(ofstream& out,
|
||||
|
||||
string visibility = is_private ? "private" : "public";
|
||||
|
||||
out << indent() << visibility << " struct " << tstruct->get_name();
|
||||
out << indent() << visibility << " final class " << tstruct->get_name();
|
||||
|
||||
if (tstruct->is_xception()) {
|
||||
out << " : ErrorType";
|
||||
|
Loading…
Reference in New Issue
Block a user