2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportAssignmentError.ts ===
|
|
|
|
module M {
|
2015-04-13 23:01:57 +02:00
|
|
|
>M : typeof M, Symbol(M, Decl(exportAssignmentError.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var x;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : any, Symbol(x, Decl(exportAssignmentError.ts, 1, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
import M2 = M;
|
2015-04-13 23:01:57 +02:00
|
|
|
>M2 : typeof M, Symbol(M2, Decl(exportAssignmentError.ts, 2, 1))
|
|
|
|
>M : typeof M, Symbol(M, Decl(exportAssignmentError.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export = M2; // should not error
|
2015-04-13 23:01:57 +02:00
|
|
|
>M2 : typeof M, Symbol(M2, Decl(exportAssignmentError.ts, 2, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|