From @robpalme: https://twitter.com/robpalmer2/status/1190383568612184064 ```ts function base_init() { { } function me() { } ``` https://www.typescriptlang.org/play/?ssl=8&ssc=1&pln=9&pc=1#code/GYVwdgxgLglg9mABAIwIYGcCmB9GYZQAUAlIgN4BQliNiFAvhRbYqJLAogLaYnnO0GFIA When an ending curly brace (or similar) is missing, we can give some better hints to the user. Specifically, we can use a related span and explain where the corresponding starting point is: > ``` > function base_init() { > ~ > The parser expected to find a '}' to match the '{' token here. > ```
From @robpalme: https://twitter.com/robpalmer2/status/1190383568612184064
https://www.typescriptlang.org/play/?ssl=8&ssc=1&pln=9&pc=1#code/GYVwdgxgLglg9mABAIwIYGcCmB9GYZQAUAlIgN4BQliNiFAvhRbYqJLAogLaYnnO0GFIA
When an ending curly brace (or similar) is missing, we can give some better hints to the user.
Specifically, we can use a related span and explain where the corresponding starting point is: