Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ICE]: identifier this already declared #216

Open
Subway2023 opened this issue Mar 2, 2025 · 0 comments
Open

[ICE]: identifier this already declared #216

Subway2023 opened this issue Mar 2, 2025 · 0 comments
Labels
C-bug Category: this is a bug

Comments

@Subway2023
Copy link

Subway2023 commented Mar 2, 2025

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

solar --version: 0.1.1
solc can compile successfully, but solar throws an error. If I change this to another name, the error does not occur.

error: identifier `this` already declared
 --> test.sol:2:8
  |
2 |     event this();
  |       ^^^^
  |

error: aborting due to 1 previous error
error: identifier `super` already declared
 --> test.sol:2:11
  |
2 |     event super();
  |           ^^^^^
  |
@Subway2023 Subway2023 added the C-bug Category: this is a bug label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: this is a bug
Projects
None yet
Development

No branches or pull requests

1 participant