THRIFT-897. compiler: Don't allow unqualified enum constant references
authorBryan Duxbury <bryanduxbury@apache.org>
Sun, 12 Sep 2010 15:22:49 +0000 (15:22 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Sun, 12 Sep 2010 15:22:49 +0000 (15:22 +0000)
Missed a spot.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996326 13f79535-47bb-0310-9956-ffa450edef68

test/DebugProtoTest.thrift

index c67fbcb..d4c8759 100644 (file)
@@ -272,13 +272,13 @@ enum SomeEnum {
   TWO = 2
 }
 
-const SomeEnum MY_SOME_ENUM = ONE
+const SomeEnum MY_SOME_ENUM = SomeEnum.ONE
 
 const SomeEnum MY_SOME_ENUM_1 = 1
 /*const SomeEnum MY_SOME_ENUM_2 = 7*/
 
 const map<SomeEnum,SomeEnum> MY_ENUM_MAP = {
-  ONE : TWO
+  SomeEnum.ONE : SomeEnum.TWO
 }
 
 struct StructWithSomeEnum {
@@ -286,7 +286,7 @@ struct StructWithSomeEnum {
 }
 
 const map<SomeEnum,StructWithSomeEnum> EXTRA_CRAZY_MAP = {
-  ONE : {"blah" : TWO}
+  SomeEnum.ONE : {"blah" : SomeEnum.TWO}
 }
 
 union TestUnion {