mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
402 B
TypeScript
27 lines
402 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts] ////
|
|
|
|
//// [parserAutomaticSemicolonInsertion1.ts]
|
|
interface I {
|
|
(): void;
|
|
}
|
|
|
|
declare var i: I;
|
|
var o: Object;
|
|
o = i;
|
|
i = o;
|
|
|
|
declare var a: {
|
|
(): void
|
|
}
|
|
o = a;
|
|
a = o;
|
|
|
|
|
|
//// [parserAutomaticSemicolonInsertion1.js]
|
|
"use strict";
|
|
var o;
|
|
o = i;
|
|
i = o;
|
|
o = a;
|
|
a = o;
|