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

Function overload clash when using the extern keyword #3755

Closed
mudgen opened this issue Mar 16, 2018 · 3 comments
Closed

Function overload clash when using the extern keyword #3755

mudgen opened this issue Mar 16, 2018 · 3 comments

Comments

@mudgen
Copy link

mudgen commented Mar 16, 2018

I noticed that when using solidity versions 0.4.20 and 0.4.21 that I get a name clash error when I try to compile an interface that has this code in it:

function safeTransferFrom(address _from, address _to, uint256 _tokenId) external; 
function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes _data) external;

This is the error I get:

TypeError: Function overload clash during conversion to external types for arguments.

But this code should work, but it does not. It does work if I change the keyword external to public.
The code is from the ERC721 standard.

I am using the compiler in remix.

#3699
#3729

@mudgen
Copy link
Author

mudgen commented Mar 16, 2018

Nevermind, it was a bug in my code.

@mudgen mudgen closed this as completed Mar 16, 2018
@rkbansal
Copy link

@mudgen what was your bug in the code, as I am also getting the same issue?

@hilobrain
Copy link

got the same

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

No branches or pull requests

3 participants