mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
488 B
Plaintext
15 lines
488 B
Plaintext
genericFunduleInModule.ts(8,8): error TS2749: 'A.B' refers to a value, but is being used as a type here. Did you mean 'typeof A.B'?
|
|
|
|
|
|
==== genericFunduleInModule.ts (1 errors) ====
|
|
namespace A {
|
|
export function B<T>(x: T) { return x; }
|
|
export namespace B {
|
|
export var x = 1;
|
|
}
|
|
}
|
|
|
|
var b: A.B;
|
|
~~~
|
|
!!! error TS2749: 'A.B' refers to a value, but is being used as a type here. Did you mean 'typeof A.B'?
|
|
A.B(1); |