diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2010-09-12 15:22:49 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2010-09-12 15:22:49 +0000 |
commit | 6e05e25c8977953a46251f5abfaf111a3ae9607b (patch) | |
tree | e761978dccc3213575a330f6f8b581a03352e709 | |
parent | cb0218f5c8fcc5e14016ea97f9cfc51009472246 (diff) | |
download | thrift-6e05e25c8977953a46251f5abfaf111a3ae9607b.tar.gz |
THRIFT-897. compiler: Don't allow unqualified enum constant references
Missed a spot.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996326 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/DebugProtoTest.thrift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index c67fbcb0e..d4c87597a 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -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 { |