@@ -53,20 +53,22 @@ and the reference to the type:
53
53
> ` ` ` typescript
54
54
> example <>
55
55
> ` ` `
56
+ >
57
+ > An error similar to the one below should occur
56
58
> ` ` `
57
- > Syntax error , unexpected " >"
59
+ > ParseException : Syntax error , unexpected " >"
58
60
> ` ` `
59
- > {collapsible="true" collapsed-title="TypeLang\P arser\E xception\P arseException"}
60
61
> {style="warning"}
61
62
62
63
> Leading comma is NOT allowed.
63
64
> ` ` ` typescript
64
65
> example < ,T >
65
66
> ` ` `
67
+ >
68
+ > An error similar to the one below should occur
66
69
> ` ` `
67
- > Syntax error , unexpected " ,"
70
+ > ParseException : Syntax error , unexpected " ,"
68
71
> ` ` `
69
- > {collapsible="true" collapsed-title="TypeLang\P arser\E xception\P arseException"}
70
72
> {style="warning"}
71
73
72
74
</tab>
@@ -98,20 +100,22 @@ used, for example, in static analyzers to indicate the
98
100
> ` ` ` typescript
99
101
> Collection<42 User>
100
102
> ` ` `
101
- > ` ` ` php
102
- > Syntax error, unexpected "User"
103
+ >
104
+ > An error similar to the one below should occur
105
+ > ` ` `
106
+ > ParseException: Syntax error, unexpected "User"
103
107
> ` ` `
104
- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
105
108
> {style = " warning" }
106
109
107
110
> Multiple hints are not allowed .
108
111
> ` ` ` typescript
109
112
> HashMap<array-key, some covariant Request>
110
113
> ` ` `
114
+ >
115
+ > An error similar to the one below should occur
111
116
> ` ` `
112
- > Syntax error, unexpected "Request"
117
+ > ParseException: Syntax error, unexpected "Request"
113
118
> ` ` `
114
- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
115
119
> {style = " warning" }
116
120
117
121
< / tab >
@@ -143,10 +147,11 @@ In addition to modern list declarations such as `list<int>` or
143
147
> ` ` ` typescript
144
148
> User[int]
145
149
> ` ` `
150
+ >
151
+ > An error similar to the one below should occur
146
152
> ` ` `
147
- > Syntax error, unexpected "int"
153
+ > ParseException: Syntax error, unexpected "int"
148
154
> ` ` `
149
- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
150
155
> {style = " warning" }
151
156
152
157
< / tab >
@@ -185,10 +190,11 @@ An attribute is additional metadata for an argument.
185
190
> ` ` ` typescript
186
191
> Collection<#[42] User>
187
192
> ` ` `
193
+ >
194
+ > An error similar to the one below should occur
188
195
> ` ` `
189
- > Syntax error, unexpected "42"
196
+ > ParseException: Syntax error, unexpected "42"
190
197
> ` ` `
191
- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
192
198
> {style = " warning" }
193
199
194
200
< / tab >
0 commit comments