title: Error : Variable used within its own initial value with type(of:) function
body: <p>In Swift standard <a href="https://developer.apple.com/documentation/swift/2885064-type" rel="noreferrer">document</a> by Apple :</p>
  
  <pre><code>func printInfo(_ value: Any) {
     let type = type(of: value)
     print("'\(value)' of type '\(type)'")
  }
  </code></pre>
  
  <p>and it give an error : <strong>Variable used within its own initial value</strong></p>
  
  <p><a href="https://i.stack.imgur.com/rTunR.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/rTunR.jpg" alt="enter image description here"></a></p>
  
  <p>How can I fix this with Swift 4.1?</p>