Skip to content

No type-checking for iterator return expression #20587

Closed
@ghost

Description

TypeScript Version: 2.7.0-dev.20171208

Code

function* f(): Iterable<{}> {
	return a.b / 0;
}

Expected behavior:

Errors in the return expression

Actual behavior:

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions