2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/aliasUsageInVarAssignment_main.ts ===
|
|
|
|
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : typeof Backbone
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import moduleA = require("aliasUsageInVarAssignment_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 i: IHasVisualizationModel;
|
|
|
|
>i : IHasVisualizationModel
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
|
|
|
|
|
|
|
var m: typeof moduleA = i;
|
2014-08-25 19:36:12 +02:00
|
|
|
>m : typeof moduleA
|
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
>i : IHasVisualizationModel
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInVarAssignment_backbone.ts ===
|
|
|
|
export class Model {
|
|
|
|
>Model : Model
|
|
|
|
|
|
|
|
public someData: string;
|
|
|
|
>someData : string
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts ===
|
|
|
|
import Backbone = require("aliasUsageInVarAssignment_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
|
|
|
|
}
|
|
|
|
|