2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/declareClassInterfaceImplementation.ts(5,15): error TS2420: Class 'Buffer' incorrectly implements interface 'IBuffer'.
|
2014-09-12 22:35:07 +02:00
|
|
|
Index signature is missing in type 'Buffer'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/declareClassInterfaceImplementation.ts (1 errors) ====
|
|
|
|
interface IBuffer {
|
|
|
|
[index: number]: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare class Buffer implements IBuffer {
|
|
|
|
~~~~~~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2420: Class 'Buffer' incorrectly implements interface 'IBuffer'.
|
|
|
|
!!! error TS2420: Index signature is missing in type 'Buffer'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|