Skip to content

Commit 02a9fd2

Browse files
committed
chore: add test files
1 parent e42077d commit 02a9fd2

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests/cases/conformance/salsa/plainJSTypeErrors.js(1,5): error TS2839: This condition will always return 'false' since JavaScript compares objects by reference, not value.
2+
3+
4+
==== tests/cases/conformance/salsa/plainJSTypeErrors.js (1 errors) ====
5+
if ({} === {}) {}
6+
~~~~~~~~~
7+
!!! error TS2839: This condition will always return 'false' since JavaScript compares objects by reference, not value.
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [plainJSTypeErrors.js]
2+
if ({} === {}) {}
3+
4+
5+
//// [plainJSTypeErrors.js]
6+
if ({} === {}) { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
=== tests/cases/conformance/salsa/plainJSTypeErrors.js ===
2+
if ({} === {}) {}
3+
No type information for this code.
4+
No type information for this code.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/conformance/salsa/plainJSTypeErrors.js ===
2+
if ({} === {}) {}
3+
>{} === {} : boolean
4+
>{} : {}
5+
>{} : {}
6+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @outdir: out/
2+
// @target: esnext
3+
// @allowJS: true
4+
// @filename: plainJSTypeErrors.js
5+
6+
if ({} === {}) {}

0 commit comments

Comments
 (0)