.. _Import Type:

Import Type
===========

An error is triggered when accessing a type declared in a package which was not imported in the current scope.

.. figure:: ../../images/common/sv_quick_fix_import_type_list.png

Place the editor cursor on the error's line and press :kbd:`Ctrl+1`, select the **Import ...** from the list of quick fix proposals and press  :kbd:`Enter`.

.. figure:: ../../images/common/sv_quick_fix_import_type_after.png

An **import::*** statement is added at the beginning of the enclosing package (or module, program, etc.).

.. note::

	When the missing type name is provided by multiple packages, all possible imports are proposed.
 
.. note::

	If there are multiple nested modules where the import statement could be inserted, all possible insertion points are proposed.

