2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/aliasUsageInArray_main.ts ===
|
|
|
|
import Backbone = require("aliasUsageInArray_backbone");
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : typeof Backbone
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import moduleA = require("aliasUsageInArray_moduleA");
|
2014-08-28 21:40:58 +02:00
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface IHasVisualizationModel {
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
|
|
|
|
|
|
|
VisualizationModel: typeof Backbone.Model;
|
2014-08-25 19:36:12 +02:00
|
|
|
>VisualizationModel : typeof Backbone.Model
|
|
|
|
>Backbone : typeof Backbone
|
|
|
|
>Model : typeof Backbone.Model
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var xs: IHasVisualizationModel[] = [moduleA];
|
|
|
|
>xs : IHasVisualizationModel[]
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
2014-10-13 15:56:58 +02:00
|
|
|
>[moduleA] : typeof moduleA[]
|
2014-08-25 19:36:12 +02:00
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var xs2: typeof moduleA[] = [moduleA];
|
2014-08-25 19:36:12 +02:00
|
|
|
>xs2 : typeof moduleA[]
|
|
|
|
>moduleA : typeof moduleA
|
|
|
|
>[moduleA] : typeof moduleA[]
|
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInArray_backbone.ts ===
|
|
|
|
export class Model {
|
|
|
|
>Model : Model
|
|
|
|
|
|
|
|
public someData: string;
|
|
|
|
>someData : string
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInArray_moduleA.ts ===
|
|
|
|
import Backbone = require("aliasUsageInArray_backbone");
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : typeof Backbone
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class VisualizationModel extends Backbone.Model {
|
|
|
|
>VisualizationModel : VisualizationModel
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Model : Backbone.Model
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// interesting stuff here
|
|
|
|
}
|
|
|
|
|