TypeScript/tests/baselines/reference/typeInfer1.errors.txt

21 lines
774 B
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/compiler/typeInfer1.ts(11,5): error TS2322: Type '{ Moo: () => string; }' is not assignable to type 'ITextWriter2'.
Property 'Write' is missing in type '{ Moo: () => string; }'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/typeInfer1.ts (1 errors) ====
interface ITextWriter2 {
Write(s:string):void;
WriteLine(s:string):void;
}
var x: ITextWriter2 = {
Write: function (s:string):void {},
WriteLine: function(s:string):void {}
}
var yyyyyyyy: ITextWriter2 = {
~~~~~~~~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type '{ Moo: () => string; }' is not assignable to type 'ITextWriter2'.
!!! error TS2322: Property 'Write' is missing in type '{ Moo: () => string; }'.
Moo: function() { return "cow"; }
}