21 lines
No EOL
368 B
Text
21 lines
No EOL
368 B
Text
==== tests/cases/compiler/moduleAssignmentCompat1.ts (2 errors) ====
|
|
module A {
|
|
export class C { }
|
|
}
|
|
module B {
|
|
export class C { }
|
|
class D { }
|
|
}
|
|
|
|
var a: A;
|
|
~
|
|
!!! Cannot find name 'A'.
|
|
var b: B;
|
|
~
|
|
!!! Cannot find name 'B'.
|
|
|
|
// no error
|
|
a = b;
|
|
b = a;
|
|
|
|
|