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:
Stig Bakken 2016-04-06 16:35:37 +02:00 committed by Jens Geyer
parent b749c2603e
commit ad3714ac3d

View File

@ -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";