You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bogdan Drutu (Jira)" <ji...@apache.org> on 2023/03/06 18:03:00 UTC

[jira] [Created] (THRIFT-5690) Type not defined when type defined after use

Bogdan Drutu created THRIFT-5690:
------------------------------------

             Summary: Type not defined when type defined after use
                 Key: THRIFT-5690
                 URL: https://issues.apache.org/jira/browse/THRIFT-5690
             Project: Thrift
          Issue Type: Bug
            Reporter: Bogdan Drutu


```thrift
struct Test {
10: optional Foo foo = {};
}

struct Foo {
10: optional string bar;
}
```
 

Tried with thrift 0.18.0/0.18.1

 

```

[ERROR] thrift failed output: Type "Foo" not defined

```

 

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)