kpumuk commented on PR #3254:
URL: https://github.com/apache/thrift/pull/3254#issuecomment-3571809954

   Found another inconsistency while testing constants 
[THRIFT-5911](https://issues.apache.org/jira/browse/THRIFT-5911):
   
   ```
   typedef uuid myUUID
   
   struct thing {
     1: i32  hello,
     2: i32  goodbye
     3: uuid id
     4: myUUID my_id
     5: optional myUUID my_optional_id
   }
   
   // uuids are accepted with or without curly braces
   const uuid GEN_UUID =  '00000000-4444-CCCC-ffff-0123456789ab'
   const uuid GEN_GUID = '{00112233-4455-6677-8899-aaBBccDDeeFF}'
   
   const myUUID MY_UUID =  '00000000-4444-CCCC-ffff-0123456789ab'
   const myUUID MY_GUID = '{00112233-4455-6677-8899-aaBBccDDeeFF}'
   ```
   
   produces
   
   ```ruby
     GEN_UUID = %q"00000000-4444-CCCC-ffff-0123456789ab"
   
     GEN_GUID = %q"00112233-4455-6677-8899-aaBBccDDeeFF"
   
     MY_UUID = %q"00000000-4444-CCCC-ffff-0123456789ab"
   
     MY_GUID = %q"{00112233-4455-6677-8899-aaBBccDDeeFF}"
   ```
   
   Seems like a bit of an issue with the compiler.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to