@@ -53,20 +53,22 @@ and the reference to the type:
5353> ` ` ` typescript
5454> example <>
5555> ` ` `
56+ >
57+ > An error similar to the one below should occur
5658> ` ` `
57- > Syntax error , unexpected " >"
59+ > ParseException : Syntax error , unexpected " >"
5860> ` ` `
59- > {collapsible="true" collapsed-title="TypeLang\P arser\E xception\P arseException"}
6061> {style="warning"}
6162
6263> Leading comma is NOT allowed.
6364> ` ` ` typescript
6465> example < ,T >
6566> ` ` `
67+ >
68+ > An error similar to the one below should occur
6669> ` ` `
67- > Syntax error , unexpected " ,"
70+ > ParseException : Syntax error , unexpected " ,"
6871> ` ` `
69- > {collapsible="true" collapsed-title="TypeLang\P arser\E xception\P arseException"}
7072> {style="warning"}
7173
7274</tab>
@@ -98,20 +100,22 @@ used, for example, in static analyzers to indicate the
98100> ` ` ` typescript
99101> Collection<42 User>
100102> ` ` `
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"
103107> ` ` `
104- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
105108> {style = " warning" }
106109
107110> Multiple hints are not allowed .
108111> ` ` ` typescript
109112> HashMap<array-key, some covariant Request>
110113> ` ` `
114+ >
115+ > An error similar to the one below should occur
111116> ` ` `
112- > Syntax error, unexpected "Request"
117+ > ParseException: Syntax error, unexpected "Request"
113118> ` ` `
114- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
115119> {style = " warning" }
116120
117121< / tab >
@@ -143,10 +147,11 @@ In addition to modern list declarations such as `list<int>` or
143147> ` ` ` typescript
144148> User[int]
145149> ` ` `
150+ >
151+ > An error similar to the one below should occur
146152> ` ` `
147- > Syntax error, unexpected "int"
153+ > ParseException: Syntax error, unexpected "int"
148154> ` ` `
149- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
150155> {style = " warning" }
151156
152157< / tab >
@@ -185,10 +190,11 @@ An attribute is additional metadata for an argument.
185190> ` ` ` typescript
186191> Collection<#[42] User>
187192> ` ` `
193+ >
194+ > An error similar to the one below should occur
188195> ` ` `
189- > Syntax error, unexpected "42"
196+ > ParseException: Syntax error, unexpected "42"
190197> ` ` `
191- > {collapsible = " true" collapsed - title = " TypeLang\P arser\E xception\P arseException" }
192198> {style = " warning" }
193199
194200< / tab >
0 commit comments