mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
564 B
Plaintext
19 lines
564 B
Plaintext
generics5.ts(10,14): error TS2741: Property 'b' is missing in type 'A' but required in type 'B'.
|
|
|
|
|
|
==== generics5.ts (1 errors) ====
|
|
interface A { a: string; }
|
|
interface B extends A { b: string; }
|
|
|
|
interface C extends B { c: string; }
|
|
interface G<T, U extends B> {
|
|
|
|
|
|
}
|
|
|
|
var v3: G<A, A>; // Error, A not valid argument for U
|
|
~
|
|
!!! error TS2741: Property 'b' is missing in type 'A' but required in type 'B'.
|
|
!!! related TS2728 generics5.ts:2:25: 'b' is declared here.
|
|
|
|
|