Closed xieguigang closed 6 years ago
You aren't using correct syntax for type casting. You did this.
IEnumerator<Map<string, string>>headers // typeheaders
You need to do this
<IEnumerator<Map<string, string>>>headers // <type>headers
Oh,yes, many thank for point out my problem.
TypeScript Version: 3.1.0-dev.201xxxxx
Search Terms:
Type casting statement parser error
Code
The type casting statement show above should works, but parser thinks the code is a kind of numeric expression:
Expected behavior:
TypeScript parser parse the
<type>variable
as the type casting expression.Actual behavior:
The latest typescript parser think it is a numeric math expression
Playground Link:
https://github.com/GCModeller-Cloud/data.ts/blame/3a78b978a32ce32a4a407ee26cd4bd2fed9f1b47/Linq.ts/Linq/DOM/Document.ts#L97