17 lines
No EOL
714 B
Text
17 lines
No EOL
714 B
Text
tests/cases/conformance/internalModules/moduleDeclarations/InvalidNonInstantiatedModule.ts(5,9): error TS2304: Cannot find name 'M'.
|
|
tests/cases/conformance/internalModules/moduleDeclarations/InvalidNonInstantiatedModule.ts(7,15): error TS2304: Cannot find name 'M'.
|
|
|
|
|
|
==== tests/cases/conformance/internalModules/moduleDeclarations/InvalidNonInstantiatedModule.ts (2 errors) ====
|
|
module M {
|
|
export interface Point { x: number; y: number }
|
|
}
|
|
|
|
var m = M; // Error, not instantiated can not be used as var
|
|
~
|
|
!!! error TS2304: Cannot find name 'M'.
|
|
|
|
var x: typeof M; // Error only a namespace
|
|
~
|
|
!!! error TS2304: Cannot find name 'M'.
|
|
|