[ 
https://issues.apache.org/jira/browse/THRIFT-5690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697644#comment-17697644
 ] 

Bogdan Drutu commented on THRIFT-5690:
--------------------------------------

> This is also reproducible with 0.9.1 and most likely earlier. So it is sort 
> of by design. Probably not explicitly written down, but defacto expected.

Just an FYI, this does not happen with 0.11.0 or 0.14.2 the versions that I am 
upgrading to latest and found that some files stop compiling.

> 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
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.19.0
>
>
> {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)

Reply via email to