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

Feature request: resolve typealiases inherited from protocols #831

Closed
jacobdweightman opened this issue May 1, 2020 · 1 comment · Fixed by #1292
Closed

Feature request: resolve typealiases inherited from protocols #831

jacobdweightman opened this issue May 1, 2020 · 1 comment · Fixed by #1292
Assignees
Milestone

Comments

@jacobdweightman
Copy link
Contributor

I have a protocol where a typealias is defined, and a struct which conforms to that protocol with a property whose type is that typealias.

protocol A {
	typealias Bar = Int
}

struct Foo: A {
	let bar: Bar
}

It seems that Sourcery is unable to resolve Bar to a Sourcery Type instance, but I would like to make use of such Types in a template. I've attached a minimal example that hopefully clarifies:
InheritedTypealiases.zip

@art-divin
Copy link
Collaborator

👋🏻 Thank you for reporting the issue, @jacobdweightman almost 4 years ago 😅

#1292 resolves this

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.

3 participants