TypeScript/tests/baselines/reference/parserAutomaticSemicolonInsertion1.errors.txt
2014-09-11 16:11:08 -07:00

20 lines
467 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts (2 errors) ====
interface I {
(): void;
}
var i: I;
var o: Object;
o = i;
i = o;
~
!!! error TS2323: Type 'Object' is not assignable to type 'I'.
var a: {
(): void
}
o = a;
a = o;
~
!!! error TS2323: Type 'Object' is not assignable to type '() => void'.