Merge pull request #10830 from az1az1/develop

Update value-types.rst
This commit is contained in:
Harikrishnan Mulackal 2021-01-21 12:41:46 +01:00 committed by GitHub
commit bad8d23802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,7 @@ Conversions:
A function type ``A`` is implicitly convertible to a function type ``B`` if and only if A function type ``A`` is implicitly convertible to a function type ``B`` if and only if
their parameter types are identical, their return types are identical, their parameter types are identical, their return types are identical,
their internal/external property is identical and the state mutability of ``A`` their internal/external property is identical and the state mutability of ``A``
is not more restrictive than the state mutability of ``B``. In particular: is more restrictive than the state mutability of ``B``. In particular:
- ``pure`` functions can be converted to ``view`` and ``non-payable`` functions - ``pure`` functions can be converted to ``view`` and ``non-payable`` functions
- ``view`` functions can be converted to ``non-payable`` functions - ``view`` functions can be converted to ``non-payable`` functions