2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/recursiveBaseCheck.ts(2,11): error TS2310: Type 'C' recursively references itself as a base type.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/recursiveBaseCheck.ts (1 errors) ====
|
|
|
|
declare module Module {
|
|
|
|
class C extends D {
|
2014-07-19 02:30:06 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2310: Type 'C' recursively references itself as a base type.
|
2014-07-19 02:30:06 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
export class B extends Module.C {
|
|
|
|
}
|
|
|
|
export class A extends Module.B {
|
|
|
|
}
|
|
|
|
export class AmChart extends Module.A {
|
|
|
|
}
|
|
|
|
export class D extends AmChart {
|
|
|
|
}
|
|
|
|
export class E extends Module.D {
|
|
|
|
}
|
|
|
|
export class F extends Module.E {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|