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

When are two function signatures the same? #1234

Open
MaryamZi opened this issue Apr 20, 2023 · 0 comments
Open

When are two function signatures the same? #1234

MaryamZi opened this issue Apr 20, 2023 · 0 comments
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design

Comments

@MaryamZi
Copy link
Member

Description:
Creating this issue based on a discussion related to #1230.

The spec says for object type inclusion

It is an error if an object-type-descriptor has two or more object-type-inclusions that include method-decls with the same name but different function-signatures, unless those method-decls are overridden by a method-decl in the including object-type-descriptor.

What does same/different signature mean with default values, named arguments (and therefore parameter names), etc.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

2 participants