7 lines
233 B
Plaintext
7 lines
233 B
Plaintext
==== tests/cases/conformance/types/primitives/number/assignFromNumberInterface.ts (1 errors) ====
|
|
var x = 1;
|
|
var a: Number;
|
|
x = a;
|
|
~
|
|
!!! error TS2323: Type 'Number' is not assignable to type 'number'.
|
|
a = x; |