Skip to content

[5.1] Sema: don't consider opaque types distinct for overloading purposes. #24304

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

Merged

Conversation

jckarter
Copy link
Contributor

This is necessary because:

func foo() -> some P
func foo() -> some P

theoretically defines two distinct return types, but there'd be no way to disambiguate them. Disallow overloading only by opaque return type.

This is necessary because:

```
func foo() -> some P
func foo() -> some P
```

theoretically defines two distinct return types, but there'd be no way to disambiguate them. Disallow overloading only by opaque return type.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ff94691

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ff94691

@jckarter
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ff94691

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ff94691

@jckarter jckarter merged commit ea3f293 into swiftlang:swift-5.1-branch Apr 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants