mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
360 B
Plaintext
12 lines
360 B
Plaintext
genericAndNonGenericOverload1.ts(6,1): error TS2454: Variable 'c2' is used before being assigned.
|
|
|
|
|
|
==== genericAndNonGenericOverload1.ts (1 errors) ====
|
|
interface callable2<T> {
|
|
(a: T): T;
|
|
<Z>(a: T): Z;
|
|
}
|
|
var c2: callable2<number>;
|
|
c2<string>(1);
|
|
~~
|
|
!!! error TS2454: Variable 'c2' is used before being assigned. |