title: Do Swift inner classes have access to self of outer class?
body: <p>I'm coming from a Java background where when you declare the inner class, it's either static, and doesn't have access to the instance of the outer class, or it's not static, and can access the instance of the outer class that's being operated on. See <a href="http://en.wikipedia.org/wiki/Inner_class#Types_of_nested_classes_in_Java" rel="noreferrer">http://en.wikipedia.org/wiki/Inner_class#Types_of_nested_classes_in_Java</a></p>
  
  <p>Does Swift have any concept of this? From my testing, I cannot seem to get access to the <code>Outer</code>'s <code>self</code> object, but I definitely could be doing something wrong.</p>
  
  <pre><code>class Outer {
      let value = ""
      class Inner {
          func foo() {
              let bar = value // 'Outer.Type' does not have a member named 'value'
          }
      }
  }
  </code></pre>