summaryrefslogtreecommitdiff
path: root/lib/go/test/ForwardType.thrift
diff options
context:
space:
mode:
authorYuxuan 'fishy' Wang <yuxuan.wang@reddit.com>2023-02-15 12:19:44 -0800
committerJens Geyer <jensg@apache.org>2023-03-01 22:58:55 +0100
commitdca42ab4b521bd4b0ffda67ae47a75b47045af24 (patch)
treed4344dac3e68e35f0a1696c9b1d1528139b8df06 /lib/go/test/ForwardType.thrift
parentbb80ef4e7db152eb744b0bf47cb196059021266f (diff)
downloadthrift-dca42ab4b521bd4b0ffda67ae47a75b47045af24.tar.gz
THRIFT-5685: Revert "THRIFT-5601: Fix forward typedef in go compiler"
This reverts commit b39370ec3bc96d201bbc82fbde136f98ae605ed1, and also adds a test case for THRIFT-5685.
Diffstat (limited to 'lib/go/test/ForwardType.thrift')
-rw-r--r--lib/go/test/ForwardType.thrift30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/go/test/ForwardType.thrift b/lib/go/test/ForwardType.thrift
new file mode 100644
index 000000000..0433c97cf
--- /dev/null
+++ b/lib/go/test/ForwardType.thrift
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+// https://issues.apache.org/jira/browse/THRIFT-5685
+
+namespace go forwardtypetest
+
+struct Struct {
+ 1: optional Exc foo
+}
+
+exception Exc {
+ 1: optional i32 code
+}