swift-spyable icon indicating copy to clipboard operation
swift-spyable copied to clipboard

Support `any`

Open crane-hiromu opened this issue 4 months ago • 1 comments

Thank you for creating this library 🤝


Describe the bug

Regarding any, which will definitely be implemented in swift in the future -> https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md


We are unable to conduct tests because the code generated by Spyable macro lacks the 'any' attachment on the protocol. If a new Xcode 15.3~ or flag is turned on...

Screenshot 2024-04-02 at 18 32 25



To Reproduce

When we use

  • Xcode 15.3~

or

  • -enable-upcoming-feature ExistentialAny flag

Expected behavior

Can run tests


Additional context

We are rewriting mock code using Spyable in a large-scale project. Your support with this task would be greatly appreciated in the nearly future. Thanks 👍

crane-hiromu avatar Apr 02 '24 09:04 crane-hiromu