mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
667 B
Plaintext
14 lines
667 B
Plaintext
assignmentCompatability46.ts(3,4): error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'never'.
|
|
assignmentCompatability46.ts(4,4): error TS2345: Argument of type '{ a: number; b: number; }' is not assignable to parameter of type 'never'.
|
|
|
|
|
|
==== assignmentCompatability46.ts (2 errors) ====
|
|
declare function fn(x: never): void;
|
|
|
|
fn([1, 2, 3])
|
|
~~~~~~~~~
|
|
!!! error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'never'.
|
|
fn({ a: 1, b: 2 })
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2345: Argument of type '{ a: number; b: number; }' is not assignable to parameter of type 'never'.
|
|
|