46 lines
1.5 KiB
Text
46 lines
1.5 KiB
Text
=== tests/cases/compiler/file2.ts ===
|
|
import appJs = require("file1");
|
|
>appJs : Symbol(appJs, Decl(file2.ts, 0, 0))
|
|
|
|
import Services = appJs.Services;
|
|
>Services : Symbol(Services, Decl(file2.ts, 0, 32))
|
|
>appJs : Symbol(appJs, Decl(file1.ts, 0, 0))
|
|
>Services : Symbol(appJs.Services, Decl(file1.ts, 0, 12))
|
|
|
|
import UserServices = Services.UserServices;
|
|
>UserServices : Symbol(UserServices, Decl(file2.ts, 1, 33))
|
|
>Services : Symbol(appJs.Services, Decl(file1.ts, 0, 12))
|
|
>UserServices : Symbol(Services.UserServices, Decl(file1.ts, 1, 28))
|
|
|
|
var x = new UserServices().getUserName();
|
|
>x : Symbol(x, Decl(file2.ts, 3, 3))
|
|
>new UserServices().getUserName : Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35))
|
|
>UserServices : Symbol(UserServices, Decl(file2.ts, 1, 33))
|
|
>getUserName : Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35))
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
module App {
|
|
>App : Symbol(App, Decl(file1.ts, 0, 0))
|
|
|
|
export module Services {
|
|
>Services : Symbol(Services, Decl(file1.ts, 0, 12))
|
|
|
|
export class UserServices {
|
|
>UserServices : Symbol(UserServices, Decl(file1.ts, 1, 28))
|
|
|
|
public getUserName(): string {
|
|
>getUserName : Symbol(getUserName, Decl(file1.ts, 2, 35))
|
|
|
|
return "Bill Gates";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
import Mod = App;
|
|
>Mod : Symbol(Mod, Decl(file1.ts, 8, 1))
|
|
>App : Symbol(App, Decl(file1.ts, 0, 0))
|
|
|
|
export = Mod;
|
|
>Mod : Symbol(Mod, Decl(file1.ts, 8, 1))
|
|
|