Treat postfix comments on variable identifiers and function parameters as a type annotation
error:
┌─ .\private\test-files\demo.ts:1:24
│
1 │ const x /* string */ = 4;
│ ------ ^ Type 4 is not assignable to type string
│ │
│ Variable declared with type string
this PR also adds a few changes to the parser to make this work
Treat postfix comments on variable identifiers and function parameters as a type annotation
this PR also adds a few changes to the parser to make this work