868c275fdf
* Plain JS binder errors Issue select errors from the binder in JS files that do not have checkJS explicitly turned on or off. These errors mirror runtime checks done by Javascript. * Rest of plain JS binder errors * address PR comments * Only issue binder errors in plain JS. Checker errors require requesting diagnostics, which stll needs to be peformance tested. This commit removes one cross-file duplicate declaration error in the tests. * fix const lint
16 lines
825 B
Plaintext
16 lines
825 B
Plaintext
tests/cases/conformance/salsa/plainJSRedeclare.js(1,7): error TS2451: Cannot redeclare block-scoped variable 'orbitol'.
|
|
tests/cases/conformance/salsa/plainJSRedeclare.js(2,5): error TS2451: Cannot redeclare block-scoped variable 'orbitol'.
|
|
tests/cases/conformance/salsa/plainJSRedeclare.js(2,15): error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'.
|
|
|
|
|
|
==== tests/cases/conformance/salsa/plainJSRedeclare.js (3 errors) ====
|
|
const orbitol = 1
|
|
~~~~~~~
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'orbitol'.
|
|
var orbitol = 1 + false
|
|
~~~~~~~
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'orbitol'.
|
|
~~~~~~~~~
|
|
!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'.
|
|
orbitol.toExponential()
|
|
|