mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
683 B
Plaintext
22 lines
683 B
Plaintext
cloduleWithPriorInstantiatedModule.ts(2,11): error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged.
|
|
|
|
|
|
==== cloduleWithPriorInstantiatedModule.ts (1 errors) ====
|
|
// Non-ambient & instantiated module.
|
|
namespace Moclodule {
|
|
~~~~~~~~~
|
|
!!! error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged.
|
|
export interface Someinterface {
|
|
foo(): void;
|
|
}
|
|
var x = 10;
|
|
}
|
|
|
|
class Moclodule {
|
|
}
|
|
|
|
// Instantiated module.
|
|
namespace Moclodule {
|
|
export class Manager {
|
|
}
|
|
} |