Skip to content

Commit

Permalink
Update documentation about (reserved) keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Dec 10, 2019
1 parent b71a4d6 commit 2456c6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Breaking changes:
* Commandline Interface: Add option to disable or choose hash method between IPFS and Swarm for the bytecode metadata.
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
* General: Enable Yul optimizer as part of standard optimization.
* General: New reserved keyword: ``virtual``.
* General: New reserved keywords: ``override``, ``receive``, and ``virtual``.
* General: ``private`` cannot be used together with ``virtual``.
* General: Split unnamed fallback functions into two cases defined using ``fallback()`` and ``receive()``.
* Inheritance: State variable shadowing is now disallowed.
Expand Down
2 changes: 1 addition & 1 deletion docs/060-breaking-changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This section lists purely syntactic changes that do not affect the behavior of e
longer possible to resize storage arrays assigning a new value to their length. Use ``push()``,
``push(value)`` or ``pop()`` instead, or assign a full array, which will of course overwrite existing content.

* New reserved keywords: ``virtual``.
* New reserved keywords: ``override``, ``receive``, and ``virtual``.

* The names of variables declared in inline assembly may no longer end in ``_slot`` or ``_offset``.

Expand Down
4 changes: 2 additions & 2 deletions docs/miscellaneous.rst
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,9 @@ These keywords are reserved in Solidity. They might become part of the syntax in

``abstract``, ``after``, ``alias``, ``apply``, ``auto``, ``case``, ``catch``, ``copyof``, ``default``,
``define``, ``final``, ``immutable``, ``implements``, ``in``, ``inline``, ``let``, ``macro``, ``match``,
``mutable``, ``null``, ``of``, ``override``, ``partial``, ``promise``, ``reference``, ``relocatable``,
``mutable``, ``null``, ``of``, ``partial``, ``promise``, ``reference``, ``relocatable``,
``sealed``, ``sizeof``, ``static``, ``supports``, ``switch``, ``try``, ``typedef``, ``typeof``,
``unchecked``, ``virtual``.
``unchecked``.

Language Grammar
================
Expand Down

0 comments on commit 2456c6d

Please sign in to comment.