2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/incompatibleExports1.ts(4,5): error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
|
|
tests/cases/compiler/incompatibleExports1.ts(16,5): error TS2309: An export assignment cannot be used in a module with other exported elements.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/incompatibleExports1.ts (2 errors) ====
|
|
|
|
declare module "foo" {
|
|
|
|
export interface x { a: string }
|
|
|
|
interface y { a: Date }
|
|
|
|
export = y;
|
|
|
|
~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module "baz" {
|
|
|
|
export module a {
|
|
|
|
export var b: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
module c {
|
|
|
|
export var c: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export = c;
|
|
|
|
~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|