[
https://issues.apache.org/jira/browse/THRIFT-5690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer updated THRIFT-5690:
-------------------------------
Summary: Constant expects type to be defined before (was: Type not defined
when type defined after use)
> Constant expects type to be defined before
> ------------------------------------------
>
> Key: THRIFT-5690
> URL: https://issues.apache.org/jira/browse/THRIFT-5690
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (General)
> Reporter: Bogdan Drutu
> Priority: Major
>
> {code}
> struct Test {
> 10: optional Foo foo = {};
> }
> struct Foo {
> 10: optional string bar;
> }
> {code}
> Tried with thrift 0.18.0/0.18.1
> {code}
> [ERROR] thrift failed output: Type "Foo" not defined
> {code}
> Best guess can be related with
> https://issues.apache.org/jira/browse/THRIFT-5626
--
This message was sent by Atlassian Jira
(v8.20.10#820010)