Skip to content

Commit

Permalink
Use @patch. DeprecatedTerseWriteCustomDefaultDoNotUse
Browse files Browse the repository at this point in the history
Summary: As part of migration, `patch.DeprecatedTerseWriteWithCustomDefaultValueDoNotUse` to opt in the behavior.

Reviewed By: pranavtbhat

Differential Revision: D68839813

fbshipit-source-id: 24820780f33639af8880ba4a9f035d6858e8434b
  • Loading branch information
thedavekwon authored and facebook-github-bot committed Jan 30, 2025
1 parent c50d5ba commit b578687
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thrift/lib/cpp2/patch/test/OldTerseWrite.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
* limitations under the License.
*/

include "thrift/annotation/cpp.thrift"
include "thrift/lib/thrift/patch.thrift"

package "apache.org/thrift/test"

struct Foo {
@cpp.DeprecatedTerseWrite
1: string bar;
}

struct FooWithDef {
@cpp.DeprecatedTerseWrite
@patch.DeprecatedTerseWriteCustomDefaultDoNotUse
1: i32 bar = 100;
}

0 comments on commit b578687

Please sign in to comment.