mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
511 B
Plaintext
11 lines
511 B
Plaintext
comparisonOperatorWithNumberOperand.ts(3,1): error TS2365: Operator '>=' cannot be applied to types 'number | Promise<number>' and 'number'.
|
|
|
|
|
|
==== comparisonOperatorWithNumberOperand.ts (1 errors) ====
|
|
// repro #52036
|
|
declare const t1: number | Promise<number>
|
|
t1 >= 0 // error
|
|
~~~~~~~
|
|
!!! error TS2365: Operator '>=' cannot be applied to types 'number | Promise<number>' and 'number'.
|
|
!!! related TS2773 comparisonOperatorWithNumberOperand.ts:3:1: Did you forget to use 'await'?
|
|
|