Semicolon after method body causes "TypeError: Cannot read property 'getJsDocTags' of undefined" #2098
Closed
1 of 4 tasks
Labels
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
language/typescript
Related to Typescript code
module/compiler
Issues affecting the JSII compiler
needs-triage
This issue or PR still needs to be triaged.
p2
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)What is the problem?
An innocuous semicolon after a method body causes the compiler to trip trying to read its documentation string (this is so weird):
The full error message is:
A likely trivial reproduction of this is:
This was found to trip @nija-at over at aws/aws-cdk#10521 (via: https://github.com/aws/aws-cdk/blob/de58a8b5bbce2157cba80c668116138386057036/packages/%40aws-cdk/aws-apigateway/lib/domain-name.ts#L164)
The text was updated successfully, but these errors were encountered: