Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fcanas
Last active November 12, 2017 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcanas/ccb3ff498fa5277458670bc2f311d30e to your computer and use it in GitHub Desktop.
Save fcanas/ccb3ff498fa5277458670bc2f311d30e to your computer and use it in GitHub Desktop.
cyclic metadata dependency detected, aborting
class C<T> {
enum E {
case c(T)
}
var e: E?
}
let o = C<Int>() // Crash : cyclic metadata dependency detected, aborting
class C<T> {
indirect enum E {
case c(T)
}
var e: E?
}
let o = C<Int>() // :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment