argotorg / argotorg/solidity

File level functionname shadows functionname in Interface

Open
#10,155 6 comments 0 reactions 0 assignees View on GitHub
bug :bug: medium effort medium impact should compile without error should have
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

**Solidity version 0.7.4**

![image](https://user-images.githubusercontent.com/36712489/97595339-e4284300-1a03-11eb-96af-d7d0905279d2.png)

Should the compiler warn about such name clashes even if one of them is a file-level function and the other one a function declared inside an interface?

Contributor guide

Open the contributing guide

Research direction

The report gives no source file, test, or entry point. Reproduce the Solidity 0.7.4 example involving a file-level function and an interface function, then trace the compiler's name-clash diagnostics; done means determining and documenting the expected warning behavior, with a regression test if the project structure identifies an appropriate location.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, solidity
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.