Skip to content

Primitives are assignable to weak types #16333

Closed
@DanielRosenwasser

Description

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

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

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