Skip to content

incorrect return type of async function ruined tsc 1.6.2 #5115

@cevek

Description

@cevek

/usr/local/lib/node_modules/typescript/lib/tsc.js:29825

async function abc():number{
    return 123;
}
/usr/local/lib/node_modules/typescript/lib/tsc.js:29825
                throw e;
                      ^
TypeError: Cannot read property 'flags' of undefined
    at isRelatedTo (/usr/local/lib/node_modules/typescript/lib/tsc.js:13951:56)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueHigh Priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions