You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search Terms: Debug Failure. Unhandled declaration kind! GetAccessor for Debug Failure. Unhandled declaration kind! 159 for Code
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.exportinterfaceIHasAName{readonlyname: string;}exportclassHasANameimplementsIHasAName{publicreadonlygetname(): string{return'foo';}constructor(publicreadonlyname: string,){}}
Expected behavior:
Should result in a duplicate-identifier error
Actual behavior:
tsc exits witout writing file and prints error to console
I was not aware of the use of access keywords in the constructor arguments. It appears the error only occurs if the getter is defined in the class before the regular parameter.
TypeScript Version: 3.5.1
Search Terms:
Debug Failure. Unhandled declaration kind! GetAccessor for
Debug Failure. Unhandled declaration kind! 159 for
Code
Expected behavior:
Should result in a duplicate-identifier error
Actual behavior:
tsc exits witout writing file and prints error to console
Playground Link:
https://www.typescriptlang.org/play/#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgSQAlMBnAQQDlMBbPAbwCg44phMATCJAGwE84kNYAC44JGFGQBzANwMAvgwahIsONm6kScYuSq1E1MN2C0U2oqUpC4jJnDABXAEbcE2Fm049+U4PEFaAAoASlFxSSQpW3tmVhhHKCQ4AHJ0CAgUuWZFe2wuCMdsGGgg2IcXNw9WDi4+ASFwiWkAGnsQmJylRSA
Related Issues:
#31225
#27352
The text was updated successfully, but these errors were encountered: