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

24 lines
831 B
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'.
tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts(14,1): error TS2322: Type 'Object' is not assignable to type '() => void'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts (2 errors) ====
interface I {
(): void;
}
var i: I;
var o: Object;
o = i;
i = o;
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'Object' is not assignable to type 'I'.
2014-07-13 01:04:16 +02:00
var a: {
(): void
}
o = a;
a = o;
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'Object' is not assignable to type '() => void'.
2014-07-13 01:04:16 +02:00