You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Solidity v0.8.18 enables named parameters in mapping types. The current grammar does not support that. This results in errors when trying to parse source units that contain mappings with named parameters.
For example, this minimal contract will throw an error when parsed:
pragma solidity>=0.8.18;
contractTestParse {
mapping(address account =>uint256balance) public balances;
}
The grammar would need to be fixed to allow for identifiers in mapping types
It could probably be fixed by adding optional identifiers to the mapping parsing expression:
Solidity v0.8.18 enables named parameters in mapping types. The current grammar does not support that. This results in errors when trying to parse source units that contain mappings with named parameters.
For example, this minimal contract will throw an error when parsed:
The grammar would need to be fixed to allow for identifiers in mapping types
It could probably be fixed by adding optional identifiers to the mapping parsing expression:
The text was updated successfully, but these errors were encountered: