diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 03:07:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 03:07:56 +0800 |
commit | 12045d2e110348950c81963adcd1a6fe6b42143f (patch) | |
tree | 663bb9efb167bb8f4c63b5134e3d9644f59f9812 /test | |
parent | 6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb (diff) | |
parent | 8c0297b400984d71978f81061b6d1d99453f143c (diff) | |
download | dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar.gz dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar.bz2 dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar.lz dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar.xz dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.tar.zst dexon-solidity-12045d2e110348950c81963adcd1a6fe6b42143f.zip |
Merge pull request #4464 from cryptomental/bugfix/fix-typos-in-AsmParser-and-TypeChecker
AsmParser,TypeChecker: Fix typos.
Diffstat (limited to 'test')
3 files changed, 9 insertions, 2 deletions
diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp index 07154718..3f329d28 100644 --- a/test/libjulia/Parser.cpp +++ b/test/libjulia/Parser.cpp @@ -267,7 +267,7 @@ BOOST_AUTO_TEST_CASE(recursion_depth) BOOST_AUTO_TEST_CASE(multiple_assignment) { CHECK_ERROR("{ let x:u256 function f() -> a:u256, b:u256 {} 123:u256, x := f() }", ParserError, "Label name / variable name must precede \",\" (multiple assignment)."); - CHECK_ERROR("{ let x:u256 function f() -> a:u256, b:u256 {} x, 123:u256 := f() }", ParserError, "Variable name expected in multiple assignemnt."); + CHECK_ERROR("{ let x:u256 function f() -> a:u256, b:u256 {} x, 123:u256 := f() }", ParserError, "Variable name expected in multiple assignment."); /// NOTE: Travis hiccups if not having a variable char const* text = R"( diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 3046372f..a9ce6e49 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -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"( diff --git a/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol b/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol new file mode 100644 index 00000000..089e1dbf --- /dev/null +++ b/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol @@ -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. |