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

overloading of methods #1

Open
Tynukua opened this issue Aug 29, 2021 · 0 comments
Open

overloading of methods #1

Tynukua opened this issue Aug 29, 2021 · 0 comments

Comments

@Tynukua
Copy link

Tynukua commented Aug 29, 2021

Some times rpc API provide methods with optinal typing of parametr

if create another overloading of method in interface, only one implimentation created

source/app.d(5,1): Error: class `app.AutoJsonRpc!(IAPI).AutoJsonRpc` ambiguous virtual function `helloWorld`
source/app.d(5,1): Error: class `app.AutoJsonRpc!(IAPI).AutoJsonRpc` interface function `string helloWorld(int number, int number2)` is not implemented
source/app.d(40,20): Error: template instance `app.AutoJsonRpc!(IAPI)` error instantiating

image

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

1 participant