We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Xcode 9 beta 6
md5: ccf67915caaeff6ac084aa9c7bf031cb
duplicates:
Issue Description:
public struct Cyclic<T> { enum Nested { case a(T), b } let state: Nested init(_ value: T) { state = .a(value) } } Cyclic(1)
This produces the following runtime error:
GenericCache(0x1174e4330): cyclic metadata dependency detected, aborting
I have a vary vague feeling why the nested (implicitly generic) enum somehow is responsible for the recursive type dependency.
On the other hand, the following code works as expected:
enum Outer<T> { case a(T), b } public struct Acyclic<T> { let state: Outer<T> init(_ value: T) { state = .a(value) } } let _ = Acyclic(1)
This makes me think the compiler should be able to solve the metadata dependency, at least in this simple case.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Xcode 9 beta 6
Additional Detail from JIRA
md5: ccf67915caaeff6ac084aa9c7bf031cb
duplicates:
Issue Description:
This produces the following runtime error:
I have a vary vague feeling why the nested (implicitly generic) enum somehow is responsible for the recursive type dependency.
On the other hand, the following code works as expected:
This makes me think the compiler should be able to solve the metadata dependency, at least in this simple case.
The text was updated successfully, but these errors were encountered: