mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1339 from ethereum/typo
test: fix a typo in calling_payable test
This commit is contained in:
commit
81118de512
@ -57,7 +57,7 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false,
|
|||||||
{
|
{
|
||||||
sourceUnit = parser.parse(std::make_shared<Scanner>(CharStream(source)));
|
sourceUnit = parser.parse(std::make_shared<Scanner>(CharStream(source)));
|
||||||
if(!sourceUnit)
|
if(!sourceUnit)
|
||||||
return make_pair(sourceUnit, nullptr);
|
BOOST_FAIL("Parsing failed in type checker test.");
|
||||||
|
|
||||||
SyntaxChecker syntaxChecker(errors);
|
SyntaxChecker syntaxChecker(errors);
|
||||||
if (!syntaxChecker.checkSyntax(*sourceUnit))
|
if (!syntaxChecker.checkSyntax(*sourceUnit))
|
||||||
@ -4015,8 +4015,8 @@ BOOST_AUTO_TEST_CASE(calling_payable)
|
|||||||
char const* text = R"(
|
char const* text = R"(
|
||||||
contract receiver { function pay() payable {} }
|
contract receiver { function pay() payable {} }
|
||||||
contract test {
|
contract test {
|
||||||
funciton f() { (new receiver()).pay.value(10)(); }
|
function f() { (new receiver()).pay.value(10)(); }
|
||||||
recevier r = new receiver();
|
receiver r = new receiver();
|
||||||
function g() { r.pay.value(10)(); }
|
function g() { r.pay.value(10)(); }
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
Loading…
Reference in New Issue
Block a user