title: no enclosing instance of type... in scope
body: <p>I investigate java inner classes.</p>
  
  <p>I wrote example:</p>
  
  <pre><code>public class Outer {
      public Outer(int a){}
  
      public class Inner {
          public Inner(String str, Boolean b){}
      }
  
      public static class Nested extends Inner{
          public static void m(){
              System.out.println("hello");
          }
          public Nested(String str, Boolean b , Number nm)   { super("2",true);   }
      }
  
      public class InnerTest extends Nested{
          public InnerTest(){  super("str",true,12);  }
      }
  }
  </code></pre>
  
  <p>I invoke it from main using following string:</p>
  
  <pre><code> new Outer(1).new Inner("",true);
  </code></pre>
  
  <p>I see compile error:</p>
  
  <pre><code>  java: no enclosing instance of type testInheritancefromInner.Outer is in scope
  </code></pre>
  
  <p>Can you explain me this situation?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p><img src="https://i.stack.imgur.com/NMYk3.png" alt="enter image description here"></p>