Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Build error for unimplemented() with tuple params (Xcode 16 beta 5) #120

Closed
oskarek opened this issue Aug 21, 2024 · 1 comment
Closed
Labels
apple bug Something isn't working due to a bug on Apple's platforms

Comments

@oskarek
Copy link

oskarek commented Aug 21, 2024

This causes a build error on the current version (1.2.5), and on every 1.2.x version:

let _: ((String, Int)) -> String = unimplemented("")

without any helpful compiler error message. The same thing works without issue on version 1.1.2.

The problem seems to occur for functions with tuple parameters.

Edit: I should have mentioned that this is on Xcode 16 beta 5. And I just noticed that the problem doesn't seem to happen on Xcode 15.4. I updated the title to reflect this. So maybe it's not actually a problem with the library, but with the new Xcode beta. Let me know if I should close this issue.

@oskarek oskarek changed the title Build error for unimplemented() with tuple parameters Build error for unimplemented() with tuple params (Xcode 16 beta 5) Aug 21, 2024
@mbrandonw mbrandonw added the apple bug Something isn't working due to a bug on Apple's platforms label Aug 21, 2024
@mbrandonw
Copy link
Member

Yes, unfortunately this looks like a compiler bug. Unfortunately it crashes on Xcode 16.0 beta 6 and Xcode 16.1 beta. I have filed a bug report here, and we will just have to wait until that is fixed. In the meantime you may want to bundle that tuple into a proper struct, or just implement an unimplemented closure by hand.

I will going to convert this to a discussion for now since I don't think there is much we can do, but if you find a workaround please let us know!

@pointfreeco pointfreeco locked and limited conversation to collaborators Aug 21, 2024
@mbrandonw mbrandonw converted this issue into discussion #121 Aug 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
apple bug Something isn't working due to a bug on Apple's platforms
Projects
None yet
Development

No branches or pull requests

2 participants