diff --git a/thrift/compiler/test/fixtures/basic-swift-bean/src/module.thrift b/thrift/compiler/test/fixtures/basic-swift-bean/src/module.thrift index 89429314495..f7f57d345d9 100644 --- a/thrift/compiler/test/fixtures/basic-swift-bean/src/module.thrift +++ b/thrift/compiler/test/fixtures/basic-swift-bean/src/module.thrift @@ -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, @@ -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