mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
- added isPartOfExternalInterface to Declaration
- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value> - removed tests for constant functions, checkings for constant function doesn't belong to this story
This commit is contained in:
@@ -3212,7 +3212,7 @@ BOOST_AUTO_TEST_CASE(const_state_variable)
|
||||
char const* sourceCode = R"(
|
||||
contract Foo {
|
||||
function getX() constant returns (uint r) { return x; }
|
||||
constant uint x = 56;
|
||||
uint constant x = 56;
|
||||
})";
|
||||
compileAndRun(sourceCode);
|
||||
BOOST_CHECK(callContractFunction("getX()") == encodeArgs(56));
|
||||
|
||||
Reference in New Issue
Block a user