TypeScript/tests/baselines/reference/moduleMemberWithoutTypeAnnotation2.types

38 lines
882 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts ===
module TypeScript {
>TypeScript : typeof TypeScript
2014-08-15 23:33:16 +02:00
export module CompilerDiagnostics {
>CompilerDiagnostics : typeof CompilerDiagnostics
2014-08-15 23:33:16 +02:00
export interface IDiagnosticWriter {
>IDiagnosticWriter : IDiagnosticWriter
2014-08-15 23:33:16 +02:00
Alert(output: string): void;
>Alert : (output: string) => void
>output : string
2014-08-15 23:33:16 +02:00
}
export var diagnosticWriter = null;
>diagnosticWriter : any
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
export function Alert(output: string) {
>Alert : (output: string) => void
>output : string
2014-08-15 23:33:16 +02:00
if (diagnosticWriter) {
>diagnosticWriter : any
2014-08-15 23:33:16 +02:00
diagnosticWriter.Alert(output);
>diagnosticWriter.Alert(output) : any
>diagnosticWriter.Alert : any
>diagnosticWriter : any
2014-08-15 23:33:16 +02:00
>Alert : any
>output : string
2014-08-15 23:33:16 +02:00
}
}
}
}