aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityNameAndTypeResolution.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:47:55 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:48:50 +0800
commit9836d58df8372fe13590c61ad8ebce7cfbe32015 (patch)
treef2bb35369a2a3efd4db30f69f6a0b53eafea61b8 /SolidityNameAndTypeResolution.cpp
parent8e9a9ad5e9c4ab4fe08626ef3972983b69b198a4 (diff)
downloaddexon-solidity-9836d58df8372fe13590c61ad8ebce7cfbe32015.tar.gz
dexon-solidity-9836d58df8372fe13590c61ad8ebce7cfbe32015.tar.zst
dexon-solidity-9836d58df8372fe13590c61ad8ebce7cfbe32015.zip
Removing ';' from the end of EnumDefinition
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r--SolidityNameAndTypeResolution.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index f3edfc31..ec49a42d 100644
--- a/SolidityNameAndTypeResolution.cpp
+++ b/SolidityNameAndTypeResolution.cpp
@@ -996,7 +996,7 @@ BOOST_AUTO_TEST_CASE(enum_member_access)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoStraight, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
function test()
{
choices = ActionChoices.GoStraight;
@@ -1011,7 +1011,7 @@ BOOST_AUTO_TEST_CASE(enum_invalid_member_access)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoStraight, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
function test()
{
choices = ActionChoices.RunAroundWavingYourHands;
@@ -1026,7 +1026,7 @@ BOOST_AUTO_TEST_CASE(enum_explicit_conversion_is_okay)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoStraight, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
function test()
{
a = uint256(ActionChoices.GoStraight);
@@ -1043,7 +1043,7 @@ BOOST_AUTO_TEST_CASE(int_to_enum_explicit_conversion_is_okay)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoStraight, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
function test()
{
a = 2;
@@ -1060,7 +1060,7 @@ BOOST_AUTO_TEST_CASE(enum_implicit_conversion_is_not_okay)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoStraight, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
function test()
{
a = ActionChoices.GoStraight;
@@ -1077,7 +1077,7 @@ BOOST_AUTO_TEST_CASE(enum_duplicate_values)
{
char const* text = R"(
contract test {
- enum ActionChoices { GoLeft, GoRight, GoLeft, Sit };
+ enum ActionChoices { GoLeft, GoRight, GoLeft, Sit }
}
)";
BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError);