File: recursiveBaseCheck5.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (16 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
tests/cases/compiler/recursiveBaseCheck5.ts(1,11): error TS2310: Type 'I1<T>' recursively references itself as a base type.
tests/cases/compiler/recursiveBaseCheck5.ts(2,11): error TS2310: Type 'I2<T>' recursively references itself as a base type.
tests/cases/compiler/recursiveBaseCheck5.ts(4,9): error TS2339: Property 'blah' does not exist on type 'X<unknown, unknown>'.


==== tests/cases/compiler/recursiveBaseCheck5.ts (3 errors) ====
    interface I1<T> extends I2<string> { }
              ~~
!!! error TS2310: Type 'I1<T>' recursively references itself as a base type.
    interface I2<T> extends I1<T> { }
              ~~
!!! error TS2310: Type 'I2<T>' recursively references itself as a base type.
    class X<T, U> implements I2<T> { }
    (new X).blah;
            ~~~~
!!! error TS2339: Property 'blah' does not exist on type 'X<unknown, unknown>'.