Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows comparison of types that are not comparable #16507

Closed
ghost opened this issue Jun 13, 2017 · 1 comment
Closed

Allows comparison of types that are not comparable #16507

ghost opened this issue Jun 13, 2017 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@ghost
Copy link

ghost commented Jun 13, 2017

TypeScript Version: nightly (2.5.0-dev.20170613)

Code

const a = new Date();
const b = new Date();
console.log(a < b); // false
console.log(a > b); // false
console.log(a === b); // false

Expected behavior:

Compile error: can't compare Dates.

Actual behavior:

No error.

@mhegazy mhegazy added Duplicate An existing issue was already created and removed Duplicate An existing issue was already created labels Jun 13, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Jun 13, 2017

Looks like it should be covered under #15506

@mhegazy mhegazy added the Duplicate An existing issue was already created label Jun 13, 2017
@ghost ghost closed this as completed Jun 13, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

1 participant