-
Notifications
You must be signed in to change notification settings - Fork 77
Labels
A-semaArea: semantic analysisArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with oneCategory: an issue proposing an enhancement or a PR with one
Description
Describe the feature
A function type A is implicitly convertible to a function type B iff their parameter types are identical, their return types are identical, their external/internal property is identical, and the state mutability of A is more restrictive than the state mutability of B.
purefunctions can be converted toviewandnon-payablefunctionsviewcan be converted tonon-payablepayablecan be converted tonon-payable
No other function type conversions are possible.
See Solidity's docs.
Additional context
No response
Metadata
Metadata
Assignees
Labels
A-semaArea: semantic analysisArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with oneCategory: an issue proposing an enhancement or a PR with one