solidity/test/libsolidity/syntaxTests/parsing/local_const_variable.sol

10 lines
181 B
Solidity
Raw Normal View History

2018-05-02 19:49:59 +00:00
contract Foo {
function localConst() returns (uint ret)
{
uint constant local = 4;
return local;
}
}
// ----
// ParserError: (67-67): Expected token Semicolon got 'Constant'