mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
475 B
TypeScript
17 lines
475 B
TypeScript
//// [tests/cases/conformance/internalModules/moduleDeclarations/InvalidNonInstantiatedModule.ts] ////
|
|
|
|
//// [InvalidNonInstantiatedModule.ts]
|
|
namespace M {
|
|
export interface Point { x: number; y: number }
|
|
}
|
|
|
|
var m = M; // Error, not instantiated can not be used as var
|
|
|
|
var x: typeof M; // Error only a namespace
|
|
|
|
|
|
//// [InvalidNonInstantiatedModule.js]
|
|
"use strict";
|
|
var m = M; // Error, not instantiated can not be used as var
|
|
var x; // Error only a namespace
|