mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support some restricted tokens (return, byte, address) as identifiers in Julia
This commit is contained in:
@@ -196,6 +196,14 @@ BOOST_AUTO_TEST_CASE(empty_call)
|
||||
CHECK_ERROR("{ () }", ParserError, "Literal or identifier expected.");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(tokens_as_identifers)
|
||||
{
|
||||
BOOST_CHECK(successParse("{ let return:u256 := 1:u256 }"));
|
||||
BOOST_CHECK(successParse("{ let byte:u256 := 1:u256 }"));
|
||||
BOOST_CHECK(successParse("{ let address:u256 := 1:u256 }"));
|
||||
BOOST_CHECK(successParse("{ let bool:u256 := 1:u256 }"));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(lacking_types)
|
||||
{
|
||||
CHECK_ERROR("{ let x := 1:u256 }", ParserError, "Expected token Identifier got 'Assign'");
|
||||
|
||||
Reference in New Issue
Block a user