The thrift IDL specifies that a field can be a assigned a default ConstValue, which can be an identifier, possibly a struct. However, the compiler rejects this input with the error: type error: const was declared as struct/xception.
For this example input:
The expected output would be something like (in Java):
Note that a copy of DEFAULT_A is used instead of the DEFAULT_A instance itself.