Skip to content

Primitives are assignable to weak types #16333

Description

interface Weak {
  a?: any,
  b?: any,
}
let x: Weak = 10;

Expected: Error on assigning 10 to x.
Actual: No error.

Metadata

Metadata

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