Skip to content

Conversation

@marcvernet31
Copy link

As defined in this issue #216, built in symbols this, super and _ give an error where shadowed as in the example code here:

contract C {
	event this();
	event super();
	event _();
}

This behaviour differs from solc, where this situation only gives a warning on the shadowing (https://github.com/argotorg/solidity/blob/develop/test/libsolidity/syntaxTests/events/illegal_names_exception.sol)

Modified conflicting_declaration to explicitly allow events to shadow builtins, so that it emits a warning instead of error. Added a test case in test/ui/resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant