-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[interop] C++ function returning NonCopyable
type returns Never
in Swift and is callable
#64401
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
Comments
@hyp Could you give a hint on how one would go about this? |
@AnthonyLatsis Are there any resources I can go through to solve this? |
My best guess would be that this is an issue with |
Well, ok! |
Sorry for delay, I already have a PR that addresses on this issue: #65105 . Not yet merged to 5.9 though |
Will work around it in a different way |
…ailable This prevents users from calling functions with unsupported or unavailable return types. This ensures that users don't for example call a function that returns a non-copyable and non-movable type Fixes swiftlang#64401
…ailable This prevents users from calling functions with unsupported or unavailable return types. This ensures that users don't for example call a function that returns a non-copyable and non-movable type Fixes swiftlang#64401
…ailable This prevents users from calling functions with unsupported or unavailable return types. This ensures that users don't for example call a function that returns a non-copyable and non-movable type Fixes swiftlang#64401
This code:
Produces callable
returnsNoncopyable
function in Swift module interface that returnsNever
:This function is callable, and doesn't result in an error unless the return value is attempted to be used.
The text was updated successfully, but these errors were encountered: