txt: ## notcomposed.md
  class X::Inheritance::NotComposed
  
  Error due to inheriting from a type that's not composed yet
  
  ```raku
  class X::Inheritance::NotComposed is Exception {}
  ```
  
  When you try to inherit from a class that hasn't been [composed](/language/mop#Composition_time_and_static_reasoning), an exception of type X::Inheritance::NotComposed is thrown.
  
  Usually this happens because it's not yet fully parsed, or that is stubbed:
  
  For example
  
  ```raku
  class A { ... };    # literal ... for stubbing
  class B is A { };
  
  ```
  
  dies with
  
  ｢text｣ without highlighting
  
  ```
  
  
  ```
  
  ===SORRY!===
  'B' cannot inherit from 'A' because 'A' isn't composed yet (maybe it is stubbed)
  
  
  ```
  
  
  ```
  
  The second common way to trigger this error is by trying to inherit from a class from within the class body.
  
  For example
  
  ```raku
  class Outer {
      class Inner is Outer {
      }
  }
  
  ```
  
  dies with
  
  ｢text｣ without highlighting
  
  ```
  
  
  ```
  
  ===SORRY!===
  'Outer::Inner' cannot inherit from 'Outer' because 'Outer' isn't composed yet (maybe it is stubbed)
  
  
  ```
  
  
  ```
  
  # [Methods](#class_X::Inheritance::NotComposed "go to top of document")[§](#Methods "direct link")
  
  ## [method child-name](#class_X::Inheritance::NotComposed "go to top of document")[§](#method_child-name "direct link")
  
  ```raku
  method child-name(X::Inheritance::NotComposed:D: --> Str:D)
  ```
  
  Returns the name of the type that tries to inherit.
  
  ## [method parent-name](#class_X::Inheritance::NotComposed "go to top of document")[§](#method_parent-name "direct link")
  
  ```raku
  method parent-name(X::Inheritance::NotComposed:D: --> Str:D)
  ```
  
  Returns the name of the parent type that the type tries to inherit from
  