21 lines
No EOL
620 B
Text
21 lines
No EOL
620 B
Text
tests/cases/compiler/interfaceImplementation4.ts(8,7): error TS2421: Class 'C5' incorrectly implements interface 'I1':
|
|
Property 'iObj' is missing in type 'C5'.
|
|
|
|
|
|
==== tests/cases/compiler/interfaceImplementation4.ts (1 errors) ====
|
|
interface I1 {
|
|
iObj:{ };
|
|
iNum:number;
|
|
iAny:any;
|
|
iFn():void;
|
|
}
|
|
|
|
class C5 implements I1 {
|
|
~~
|
|
!!! error TS2421: Class 'C5' incorrectly implements interface 'I1':
|
|
!!! error TS2421: Property 'iObj' is missing in type 'C5'.
|
|
public iNum:number;
|
|
public iAny:any;
|
|
public iFn() { }
|
|
}
|
|
|