mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixing tests on breaking branch.
This commit is contained in:
parent
993a7941b1
commit
bd64b971b9
@ -656,13 +656,8 @@ External (or public) functions have the following members:
|
||||
|
||||
Example that shows how to use the members::
|
||||
|
||||
<<<<<<< HEAD
|
||||
pragma solidity >=0.6.4 <0.8.0;
|
||||
=======
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.6.0 <0.7.0;
|
||||
// This will report a warning
|
||||
>>>>>>> origin/develop
|
||||
pragma solidity >=0.6.4 <0.8.0;
|
||||
|
||||
contract Example {
|
||||
function f() public payable returns (bytes4) {
|
||||
|
@ -330,6 +330,7 @@ for an interface type ``I``:
|
||||
A ``bytes4`` value containing the `EIP-165 <https://eips.ethereum.org/EIPS/eip-165>`_
|
||||
interface identifier of the given interface ``I``. This identifier is defined as the ``XOR`` of all
|
||||
function selectors defined within the interface itself - excluding all inherited functions.
|
||||
|
||||
The following properties are available for an integer type ``T``:
|
||||
|
||||
``type(T).min``
|
||||
|
@ -3027,8 +3027,8 @@ bool TypeChecker::visit(Identifier const& _identifier)
|
||||
if (magicVar->type()->category() == Type::Category::Integer)
|
||||
{
|
||||
solAssert(_identifier.name() == "now", "");
|
||||
m_errorReporter
|
||||
.typeError(
|
||||
m_errorReporter.typeError(
|
||||
7359_error,
|
||||
_identifier.location(),
|
||||
"\"now\" has been deprecated. Use \"block.timestamp\" instead."
|
||||
);
|
||||
|
@ -22,6 +22,8 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> FAILURE
|
||||
// g() -> FAILURE
|
||||
|
@ -37,6 +37,8 @@ contract test {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// sendAmount(uint256): 5 -> 5
|
||||
|
@ -38,6 +38,8 @@ contract Main {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor(), 22 wei ->
|
||||
// getFlag() -> true
|
||||
|
@ -18,6 +18,8 @@ contract test {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// sendAmount(uint256): 5 -> 8
|
||||
|
@ -17,6 +17,8 @@ contract test {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// sendAmount(uint256): 5 -> 8
|
||||
|
@ -1,5 +1,3 @@
|
||||
pragma solidity ^0.6.0;
|
||||
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
contract Ownable {
|
||||
@ -25,4 +23,4 @@ contract Voting is Ownable {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (324-340): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
// Warning: (299-315): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
|
Loading…
Reference in New Issue
Block a user