2014-09-12 22:35:07 +02:00
tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts(1,19): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts (1 errors) ====
export module CompilerDiagnostics {
2014-07-19 02:30:06 +02:00
~~~~~~~~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
2014-07-13 01:04:16 +02:00
export var debug = false;
export interface IDiagnosticWriter {
Alert(output: string): void;
}
export var diagnosticWriter: IDiagnosticWriter = null;
export var analysisPass: number = 0;
export function Alert(output: string) {
if (diagnosticWriter) {
diagnosticWriter.Alert(output);
}
}
export function debugPrint(s: string) {
if (debug) {
Alert(s);
}
}
export function assert(condition: boolean, s: string) {
if (debug) {
if (!condition) {
Alert(s);
}
}
}
2014-07-19 02:30:06 +02:00
}