Files
tsgo/testdata/baselines/reference/submodule/conformance/asiPreventsParsingAsAmbientExternalModule01.js

20 lines
678 B
TypeScript

//// [tests/cases/conformance/externalModules/asiPreventsParsingAsAmbientExternalModule01.ts] ////
//// [asiPreventsParsingAsAmbientExternalModule01.ts]
var declare: number;
var module: string;
declare // this is the identifier 'declare'
module // this is the identifier 'module'
"my external module" // this is just a string
{ } // this is a block body
//// [asiPreventsParsingAsAmbientExternalModule01.js]
"use strict";
var declare;
var module;
declare; // this is the identifier 'declare'
module; // this is the identifier 'module'
"my external module"; // this is just a string
{ } // this is a block body