Skip to content

Target of predicate type is not checked #15358

@RyanCavanaugh

Description

@RyanCavanaugh

This should be an error (duplicate declarations of a)

function addProp2(x: any): x is { a: string; a: string; } {
	return true;
}

Need to call checkType (or similar) on the operand here

Metadata

Metadata

Assignees

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