Closed
Description
TypeScript Version: 2.4.2 / playground (2.3.?)
Code
let x: (& number & string);
Expected behavior:
Emits error, since language spec said,
IntersectionType: IntersectionOrPrimaryType & PrimaryType
in the subsection 3.8.7
Actual behavior:
Doesn't emit error and uses it as number & string
.