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
TypeError: Cannot read property 'members' of undefined
at resolveDeclaredMembers (D:\repos\TypeScript\built\local\typescript.js:15456:65)
at resolveTypeReferenceMembers (D:\repos\TypeScript\built\local\typescript.js:15486:26)
at resolveStructuredTypeMembers (D:\repos\TypeScript\built\local\typescript.js:15705:21)
at getPropertiesOfObjectType (D:\repos\TypeScript\built\local\typescript.js:15713:24)
at propertiesRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17272:34)
at objectTypeRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17238:30)
at isRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17062:34)
at checkTypeRelatedTo (D:\repos\TypeScript\built\local\typescript.js:16929:26)
at checkTypeAssignableTo (D:\repos\TypeScript\built\local\typescript.js:16902:20)
at isTypeAssignableTo (D:\repos\TypeScript\built\local\typescript.js:16896:20)
annotating the generator return value in any way causes the exception to not be thrown. This also only happens when the async generator is anonymous.
I know that async generators aren't technically valid JS, but attempting to transpile one probably shouldn't throw.
The text was updated successfully, but these errors were encountered:
@weswigham: I'm unable to repro this against master, though async generators are not themselves supported in TypeScript. What version of the compiler are you using? Can you try this against our nightly builds? If you are using node, you can run npm install typescript@next to install the most recent nightly build locally in node_modules/.
Attempting to
ts.transpile
this async generatorthrows
annotating the generator return value in any way causes the exception to not be thrown. This also only happens when the async generator is anonymous.
I know that async generators aren't technically valid JS, but attempting to transpile one probably shouldn't throw.
The text was updated successfully, but these errors were encountered: