Merge pull request #4464 from cryptomental/bugfix/fix-typos-in-AsmParser-and-TypeChecker

AsmParser,TypeChecker: Fix typos.
This commit is contained in:
chriseth
2018-07-10 21:07:56 +02:00
committed by GitHub
5 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ BOOST_AUTO_TEST_CASE(recursion_depth)
BOOST_AUTO_TEST_CASE(multiple_assignment)
{
CHECK_PARSE_ERROR("{ let x function f() -> a, b {} 123, x := f() }", ParserError, "Label name / variable name must precede \",\" (multiple assignment).");
CHECK_PARSE_ERROR("{ let x function f() -> a, b {} x, 123 := f() }", ParserError, "Variable name expected in multiple assignemnt.");
CHECK_PARSE_ERROR("{ let x function f() -> a, b {} x, 123 := f() }", ParserError, "Variable name expected in multiple assignment.");
/// NOTE: Travis hiccups if not having a variable
char const* text = R"(
@@ -0,0 +1,7 @@
contract C {
function f() pure public {
abi.encodeWithSelector({selector:"abc"});
}
}
// ----
// TypeError: (52-92): Named arguments cannot be used for functions that take arbitrary parameters.