title: Error during setup:di:compile - Incompatible argument type
body: <p>I'm getting following errors on running setup:di:compile in my magento 2.</p>
  <blockquote>
  <p>Incompatible argument type: Required type: \Magento\Catalog\Model\ProductTypes\ConfigInterface. Actual type: array;</p>
  <p>Incompatible argument type: Required type: \Magento\Wishlist\Model\WishlistFactory. Actual type: array;</p>
  </blockquote>
  <p>Code responsible for the error is as follows</p>
  <pre><code>    public function __construct(
      \Magento\Backend\Block\Template\Context $context,
      \Magento\Backend\Model\Session\Quote $sessionQuote,
      \Magento\Sales\Model\AdminOrder\Create $orderCreate,
      PriceCurrencyInterface $priceCurrency,
      \Magento\Wishlist\Model\WishlistFactory $wishlistFactory,
      \Magento\GiftMessage\Model\Save $giftMessageSave,
      \Magento\Tax\Model\Config $taxConfig,
      \Magento\Tax\Helper\Data $taxData,
      \Magento\GiftMessage\Helper\Message $messageHelper,
      StockRegistryInterface $stockRegistry,
      StockStateInterface $stockState,
      array $data = []
  ) {
      $this-&gt;_messageHelper = $messageHelper;
      $this-&gt;_wishlistFactory = $wishlistFactory;
      $this-&gt;_giftMessageSave = $giftMessageSave;
      $this-&gt;_taxConfig = $taxConfig;
      $this-&gt;_taxData = $taxData;
      $this-&gt;stockRegistry = $stockRegistry;
      $this-&gt;stockState = $stockState;
      parent::__construct($context, $sessionQuote, $orderCreate, $priceCurrency, $data);
  }
  </code></pre>
  <p>And</p>
  <pre><code>    public function __construct(
      \Magento\Backend\Block\Context $context,
      \Magento\Catalog\Model\ProductTypes\ConfigInterface $typeConfig,
      array $data = []
  ) {
      parent::__construct($context, $data);
      $this-&gt;typeConfig = $typeConfig;
  }
  </code></pre>
  <p>In my Layout I'm calling like this</p>
  <pre><code>        &lt;block class=&quot;MyVendor\MyModule\Block\Adminhtml\Quote\Create\Items&quot; template=&quot;Magento_Sales::order/create/items.phtml&quot; name=&quot;items&quot;&gt;
          &lt;block class=&quot;Magento\Sales\Block\Adminhtml\Order\Create\Items\Grid&quot; template=&quot;Magento_Sales::quote/create/items/grid.phtml&quot; name=&quot;items_grid&quot;&gt;
              &lt;block class=&quot;Magento\Sales\Block\Adminhtml\Order\Create\Coupons&quot; template=&quot;Magento_Sales::order/create/form.phtml&quot; name=&quot;coupons&quot;&gt;
                  &lt;block class=&quot;Magento\Sales\Block\Adminhtml\Order\Create\Coupons\Form&quot; template=&quot;Magento_Sales::order/create/coupons/form.phtml&quot; name=&quot;form&quot; /&gt;
              &lt;/block&gt;
          &lt;/block&gt;
      &lt;/block&gt;  
  </code></pre>
  <p>Thanks in Advance</p>