Skip to content

Commit

Permalink
fbcode/thrift/compiler/test/fixtures/basic-swift-bean/
Browse files Browse the repository at this point in the history
Reviewed By: avalonalex

Differential Revision: D58666749

fbshipit-source-id: e6f3fa8a13357e64c7469f15f3d06d37a479e6b3
  • Loading branch information
generatedunixname226714639793621 authored and facebook-github-bot committed Jun 17, 2024
1 parent 22a80c9 commit c614d5c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace java.swift test.fixtures.basic_swift_bean

include "thrift/annotation/java.thrift"
include "thrift/annotation/cpp.thrift"

enum MyEnum {
MyValue1 = 0,
Expand All @@ -30,7 +31,8 @@ struct MyStruct1 {
# use the type before it is defined. Thrift should be able to handle this
3: MyDataItem MyDataField;
# glibc has macros with this name, Thrift should be able to prevent collisions
4: i64 major (cpp.name = "majorVer");
@cpp.Name{value = "majorVer"}
4: i64 major;
}

@java.Mutable
Expand Down

0 comments on commit c614d5c

Please sign in to comment.