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

Add availability to mocks when parametrized protocols found in requirements #68

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

Kolos65
Copy link
Owner

@Kolos65 Kolos65 commented Jul 30, 2024

No description provided.

@Kolos65 Kolos65 linked an issue Jul 30, 2024 that may be closed by this pull request
Copy link

@nathansalaun-sofia nathansalaun-sofia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The macro works on my project now, thanks!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case you didn't see the file is named MockFacotry.swift it should probably be MockFactory.swift

@Kolos65 Kolos65 force-pushed the some-type-support branch from c408898 to 9b49f0a Compare July 30, 2024 14:52
@Kolos65 Kolos65 force-pushed the some-type-support branch from 9b49f0a to deed708 Compare August 2, 2024 17:00
@Kolos65 Kolos65 merged commit da977ec into main Aug 2, 2024
2 checks passed
@voidless
Copy link

There is a compilation error with this change in Xcode 16.1, it doesn't allow us to do this:

@available(iOS 16, *)
private class Some {

    @available(iOS 15, *) // Property cannot be more available than enclosing scope
    private var val: Int = 0
}

TestProtocol.swift already includes this case

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.

Add @available(iOS 16, *) to generated class
3 participants