-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Description
π Search Terms
"type-inference", "bug", "boolean-literals"
π Version & Regression Information
$ tsc --version
Version 5.9.3β― Playground Link
π» Code
let crowbars = ( true as true )
const quatrains = ( true as boolean )
let miniature = ((crowbars) || (quatrains))
function blink(aqueous: string): -56
{
let photoed = ( -56 as -56 );
const vectors = ( false as boolean );
miniature = vectors;
return photoed;
}π Actual behavior
The program fails to compile in strict mode, but compiles fine in non-strict mode.
π Expected behavior
This program doesn't have anything that should be affected by turning on strict mode, so behaviour should be exactly the same.
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
No labels