title: InvalidInitCycle layout: article

InvalidInitCycle occurs when an invalid cycle is detected within the
initialization graph.

Example:
 var x int = f()

 func f() int { return x }