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

How to indicate that a function returns "some TypeName"? #114

Closed
Lavmee opened this issue Jan 23, 2024 · 3 comments · Fixed by #115
Closed

How to indicate that a function returns "some TypeName"? #114

Lavmee opened this issue Jan 23, 2024 · 3 comments · Fixed by #115

Comments

@Lavmee
Copy link

Lavmee commented Jan 23, 2024

I need to generate functions of this type:

public func onChange() -> some View {
}
@kdubb
Copy link
Contributor

kdubb commented Jan 23, 2024

We will need to add some method of adding qualifiers to types (e.g. some and any).

@Lavmee
Copy link
Author

Lavmee commented Jan 23, 2024

Is it possible to use some kind of workaround?

@kdubb
Copy link
Contributor

kdubb commented Jan 23, 2024

Not without using CodeWriter to write the signature manually. I opened PR #115... should be in fairly quickly.

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 a pull request may close this issue.

2 participants