mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests after rebase
This commit is contained in:
parent
1ef2f60049
commit
e4be484047
@ -245,7 +245,7 @@ because ``-1`` cannot be implicitly converted to ``uint8``.
|
|||||||
.. code-block:: solidity
|
.. code-block:: solidity
|
||||||
|
|
||||||
// SPDX-License-Identifier: GPL-3.0
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
pragma solidity >=0.8.16 <0.9.0;
|
pragma solidity >=0.8.17 <0.9.0;
|
||||||
|
|
||||||
// This will not compile
|
// This will not compile
|
||||||
contract C {
|
contract C {
|
||||||
@ -265,7 +265,7 @@ the number of the expressions in the array literal. Therefore following is impos
|
|||||||
.. code-block:: solidity
|
.. code-block:: solidity
|
||||||
|
|
||||||
// SPDX-License-Identifier: GPL-3.0
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
pragma solidity >=0.8.16 <0.9.0;
|
pragma solidity >=0.8.17 <0.9.0;
|
||||||
|
|
||||||
// This will not compile
|
// This will not compile
|
||||||
contract C {
|
contract C {
|
||||||
@ -284,7 +284,7 @@ Array literals can also be used to initialize multi-dimensional arrays:
|
|||||||
.. code-block:: solidity
|
.. code-block:: solidity
|
||||||
|
|
||||||
// SPDX-License-Identifier: GPL-3.0
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
pragma solidity >=0.8.16 <0.9.0;
|
pragma solidity >=0.8.17 <0.9.0;
|
||||||
|
|
||||||
contract C {
|
contract C {
|
||||||
int256 [2][] a = [[1, 2], [3, 4], [5, 6]];
|
int256 [2][] a = [[1, 2], [3, 4], [5, 6]];
|
||||||
@ -347,7 +347,7 @@ Array Members
|
|||||||
.. code-block:: solidity
|
.. code-block:: solidity
|
||||||
|
|
||||||
// SPDX-License-Identifier: GPL-3.0
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
pragma solidity >=0.8.16 <0.9.0;
|
pragma solidity >=0.8.17 <0.9.0;
|
||||||
|
|
||||||
contract ArrayContract {
|
contract ArrayContract {
|
||||||
uint[2**20] aLotOfIntegers;
|
uint[2**20] aLotOfIntegers;
|
||||||
|
Loading…
Reference in New Issue
Block a user