File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2117,15 +2117,15 @@ Control Instructions
2117
2117
2118
2118
* The label :math: `C.\CLABELS [l]` must be defined in the context.
2119
2119
2120
- * The :ref: `result type <syntax-resulttype >` :math: `[t^\ast ]` must be the same as :math: `C.\CLABELS [l]`.
2120
+ * The :ref: `result type <syntax-resulttype >` :math: `[t^\ast ]` must :ref: ` match < match-resulttype >` :math: `C.\CLABELS [l]`.
2121
2121
2122
2122
* Then the catch clause is valid.
2123
2123
2124
2124
.. math ::
2125
2125
\frac {
2126
2126
\expanddt (C.\CTAGS [x]) = [t^\ast ] \toF []
2127
2127
\qquad
2128
- C. \CLABELS [l] = [t^\ast ]
2128
+ C \vdashresulttypematch [t^\ast ] \matchesresulttype C. \CLABELS [l ]
2129
2129
}{
2130
2130
C \vdashcatch \CATCH ~x~l \ok
2131
2131
}
@@ -2159,13 +2159,13 @@ Control Instructions
2159
2159
2160
2160
* The label :math: `C.\CLABELS [l]` must be defined in the context.
2161
2161
2162
- * The :ref: `result type <syntax-resulttype >` :math: `C.\CLABELS [l]` must be empty .
2162
+ * The :ref: `result type <syntax-resulttype >` :math: `[]` must :ref: ` match < match-resulttype >` :math: ` C.\CLABELS [l]`.
2163
2163
2164
2164
* Then the catch clause is valid.
2165
2165
2166
2166
.. math ::
2167
2167
\frac {
2168
- C. \CLABELS [l] = [ ]
2168
+ C \vdashresulttypematch [] \matchesresulttype C. \CLABELS [l ]
2169
2169
}{
2170
2170
C \vdashcatch \CATCHALL ~l \ok
2171
2171
}
You can’t perform that action at this time.
0 commit comments