Skip to content

Commit 4086224

Browse files
committed
[spec] Backport fix closing module types
1 parent 7aae84f commit 4086224

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

document/core/valid/modules.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,6 @@ that is, its components can only refer to definitions that appear in the module
740740
Consequently, no initial :ref:`context <context>` is required.
741741
Instead, the context :math:`C` for validation of the module's content is constructed from the definitions in the module.
742742

743-
The :ref:`external types <syntax-externtype>` classifying a module may contain free :ref:`type indices <syntax-typeidx>` that refer to types defined within the module.
744-
745-
746743
* Let :math:`\module` be the module to validate.
747744

748745
* The :ref:`types <syntax-type>` :math:`\module.\MTYPES` must be :ref:`valid <valid-type>` yielding a :ref:`context <context>` :math:`C_0`.
@@ -845,7 +842,7 @@ The :ref:`external types <syntax-externtype>` classifying a module may contain f
845842

846843
* All export names :math:`\export_i.\ENAME` must be different.
847844

848-
* Then the module is valid with :ref:`external types <syntax-externtype>` :math:`\X{it}^\ast \to \X{et}^\ast`.
845+
* Then the module is valid with :ref:`external types <syntax-externtype>` :math:`\clostype_C(\X{it}^\ast \to \X{et}^\ast)`.
849846

850847
.. math::
851848
\frac{
@@ -913,7 +910,7 @@ The :ref:`external types <syntax-externtype>` classifying a module may contain f
913910
\end{array}
914911
\end{array}
915912
}{
916-
\vdashmodule \module : \X{it}^\ast \to \X{et}^\ast
913+
\vdashmodule \module : \clostype_C(\X{it}^\ast \to \X{et}^\ast)
917914
}
918915
919916
.. note::

0 commit comments

Comments
 (0)