mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Added another test case (#948)
This commit is contained in:
parent
2e36faed28
commit
eebc8f903d
@ -0,0 +1,25 @@
|
||||
//// [declFileAliasUseBeforeDeclaration2.ts]
|
||||
|
||||
declare module "test" {
|
||||
module A {
|
||||
class C {
|
||||
}
|
||||
}
|
||||
class B extends E {
|
||||
}
|
||||
import E = A.C;
|
||||
}
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration2.js]
|
||||
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration2.d.ts]
|
||||
declare module "test" {
|
||||
module A {
|
||||
class C {
|
||||
}
|
||||
}
|
||||
class B extends E {
|
||||
}
|
||||
import E = A.C;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration2.ts ===
|
||||
|
||||
declare module "test" {
|
||||
module A {
|
||||
>A : typeof A
|
||||
|
||||
class C {
|
||||
>C : C
|
||||
}
|
||||
}
|
||||
class B extends E {
|
||||
>B : B
|
||||
>E : E
|
||||
}
|
||||
import E = A.C;
|
||||
>E : typeof E
|
||||
>A : typeof A
|
||||
>C : E
|
||||
}
|
||||
12
tests/cases/compiler/declFileAliasUseBeforeDeclaration2.ts
Normal file
12
tests/cases/compiler/declFileAliasUseBeforeDeclaration2.ts
Normal file
@ -0,0 +1,12 @@
|
||||
//@module: commonjs
|
||||
//@declaration: true
|
||||
|
||||
declare module "test" {
|
||||
module A {
|
||||
class C {
|
||||
}
|
||||
}
|
||||
class B extends E {
|
||||
}
|
||||
import E = A.C;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user