Skip to content

Commit eebc8f9

Browse files
committed
Added another test case (#948)
1 parent 2e36fae commit eebc8f9

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//// [declFileAliasUseBeforeDeclaration2.ts]
2+
3+
declare module "test" {
4+
module A {
5+
class C {
6+
}
7+
}
8+
class B extends E {
9+
}
10+
import E = A.C;
11+
}
12+
13+
//// [declFileAliasUseBeforeDeclaration2.js]
14+
15+
16+
//// [declFileAliasUseBeforeDeclaration2.d.ts]
17+
declare module "test" {
18+
module A {
19+
class C {
20+
}
21+
}
22+
class B extends E {
23+
}
24+
import E = A.C;
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration2.ts ===
2+
3+
declare module "test" {
4+
module A {
5+
>A : typeof A
6+
7+
class C {
8+
>C : C
9+
}
10+
}
11+
class B extends E {
12+
>B : B
13+
>E : E
14+
}
15+
import E = A.C;
16+
>E : typeof E
17+
>A : typeof A
18+
>C : E
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//@module: commonjs
2+
//@declaration: true
3+
4+
declare module "test" {
5+
module A {
6+
class C {
7+
}
8+
}
9+
class B extends E {
10+
}
11+
import E = A.C;
12+
}

0 commit comments

Comments
 (0)