File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
src/loc/lcl/chs/diagnosticMessages Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 2943
2943
</Str>
2944
2944
<Disp Icon="Str" />
2945
2945
</Item>
2946
- <Item ItemId=";Catch_clause_variable_cannot_have_a_type_annotation_1196 " ItemType="0" PsrId="306" Leaf="true">
2946
+ <Item ItemId=";Catch_clause_variable_cannot_have_an_initializer_1197 " ItemType="0" PsrId="306" Leaf="true">
2947
2947
<Str Cat="Text">
2948
- <Val><![CDATA[Catch clause variable cannot have a type annotation .]]></Val>
2948
+ <Val><![CDATA[Catch clause variable cannot have an initializer .]]></Val>
2949
2949
<Tgt Cat="Text" Stat="Loc" Orig="New">
2950
- <Val><![CDATA[Catch 子句变量不能有类型批注 。]]></Val>
2950
+ <Val><![CDATA[Catch 子句变量不能有初始化表达式 。]]></Val>
2951
2951
</Tgt>
2952
2952
</Str>
2953
2953
<Disp Icon="Str" />
2954
2954
</Item>
2955
- <Item ItemId=";Catch_clause_variable_cannot_have_an_initializer_1197 " ItemType="0" PsrId="306" Leaf="true">
2955
+ <Item ItemId=";Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196 " ItemType="0" PsrId="306" Leaf="true">
2956
2956
<Str Cat="Text">
2957
- <Val><![CDATA[Catch clause variable cannot have an initializer .]]></Val>
2957
+ <Val><![CDATA[Catch clause variable type annotation must be 'any' or 'unknown' if specified .]]></Val>
2958
2958
<Tgt Cat="Text" Stat="Loc" Orig="New">
2959
- <Val><![CDATA[Catch 子句变量不能有初始化表达式 。]]></Val>
2959
+ <Val><![CDATA[Catch 子句变量类型注释必须为 "any" 或 "unknown" (若已指定) 。]]></Val>
2960
2960
</Tgt>
2961
2961
</Str>
2962
2962
<Disp Icon="Str" />
10125
10125
</Str>
10126
10126
<Disp Icon="Str" />
10127
10127
</Item>
10128
+ <Item ItemId=";The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088" ItemType="0" PsrId="306" Leaf="true">
10129
+ <Str Cat="Text">
10130
+ <Val><![CDATA[The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.]]></Val>
10131
+ <Tgt Cat="Text" Stat="Loc" Orig="New">
10132
+ <Val><![CDATA[推断类型“{0}”引用的类型具有无法简单序列化的循环结构。必须具有类型注释。]]></Val>
10133
+ </Tgt>
10134
+ </Str>
10135
+ <Disp Icon="Str" />
10136
+ </Item>
10128
10137
<Item ItemId=";The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527" ItemType="0" PsrId="306" Leaf="true">
10129
10138
<Str Cat="Text">
10130
10139
<Val><![CDATA[The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.]]></Val>
You can’t perform that action at this time.
0 commit comments