mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
600 B
Plaintext
17 lines
600 B
Plaintext
InvalidNonInstantiatedModule.ts(5,9): error TS2708: Cannot use namespace 'M' as a value.
|
|
InvalidNonInstantiatedModule.ts(7,15): error TS2708: Cannot use namespace 'M' as a value.
|
|
|
|
|
|
==== InvalidNonInstantiatedModule.ts (2 errors) ====
|
|
namespace M {
|
|
export interface Point { x: number; y: number }
|
|
}
|
|
|
|
var m = M; // Error, not instantiated can not be used as var
|
|
~
|
|
!!! error TS2708: Cannot use namespace 'M' as a value.
|
|
|
|
var x: typeof M; // Error only a namespace
|
|
~
|
|
!!! error TS2708: Cannot use namespace 'M' as a value.
|
|
|