2015-09-15 20:43:28 +02:00
|
|
|
// @module: commonjs
|
2014-07-13 01:04:16 +02:00
|
|
|
// @Filename: aliasUsageInOrExpression_backbone.ts
|
|
|
|
export class Model {
|
|
|
|
public someData: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: aliasUsageInOrExpression_moduleA.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
2014-07-13 01:04:16 +02:00
|
|
|
export class VisualizationModel extends Backbone.Model {
|
|
|
|
// interesting stuff here
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: aliasUsageInOrExpression_main.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
|
|
|
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
2014-07-13 01:04:16 +02:00
|
|
|
interface IHasVisualizationModel {
|
|
|
|
VisualizationModel: typeof Backbone.Model;
|
|
|
|
}
|
|
|
|
var i: IHasVisualizationModel;
|
|
|
|
var d1 = i || moduleA;
|
|
|
|
var d2: IHasVisualizationModel = i || moduleA;
|
|
|
|
var d2: IHasVisualizationModel = moduleA || i;
|
|
|
|
var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA };
|
|
|
|
var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
|