24 lines
No EOL
831 B
Text
24 lines
No EOL
831 B
Text
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'.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts (2 errors) ====
|
|
interface I {
|
|
(): void;
|
|
}
|
|
|
|
var i: I;
|
|
var o: Object;
|
|
o = i;
|
|
i = o;
|
|
~
|
|
!!! error TS2322: Type 'Object' is not assignable to type 'I'.
|
|
|
|
var a: {
|
|
(): void
|
|
}
|
|
o = a;
|
|
a = o;
|
|
~
|
|
!!! error TS2322: Type 'Object' is not assignable to type '() => void'.
|
|
|