From 6e05e25c8977953a46251f5abfaf111a3ae9607b Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Sun, 12 Sep 2010 15:22:49 +0000 Subject: [PATCH] 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 --- test/DebugProtoTest.thrift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index c67fbcb0..d4c87597 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 MY_ENUM_MAP = { - ONE : TWO + SomeEnum.ONE : SomeEnum.TWO } struct StructWithSomeEnum { @@ -286,7 +286,7 @@ struct StructWithSomeEnum { } const map EXTRA_CRAZY_MAP = { - ONE : {"blah" : TWO} + SomeEnum.ONE : {"blah" : SomeEnum.TWO} } union TestUnion { -- 2.17.1