mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Update node resolution tests
This commit is contained in:
parent
ee5881ef9c
commit
c63dfbd4c7
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69))
|
||||
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 71))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 69))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 2, 34))
|
||||
@ -17,13 +17,13 @@ interface IHasVisualizationModel {
|
||||
var f = (x: IHasVisualizationModel) => x;
|
||||
>f : Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 69))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9))
|
||||
|
||||
f = (x) => moduleA;
|
||||
>f : Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 6, 5))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 71))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_backbone.ts ===
|
||||
export class Model {
|
||||
@ -34,11 +34,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 69))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 71))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -37,7 +37,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInGenericFunction_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInGenericFunction_main.ts]
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
var Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@ -47,7 +47,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInGenericFunction_main.js]
|
||||
var moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
var moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
function foo(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_main.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66))
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 68))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 2, 34))
|
||||
@ -18,7 +18,7 @@ function foo<T extends { a: IHasVisualizationModel }>(x: T) {
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>T : Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 5, 24))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
>x : Symbol(x, Decl(aliasUsageInGenericFunction_main.ts, 5, 54))
|
||||
>T : Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13))
|
||||
|
||||
@ -29,13 +29,13 @@ var r = foo({ a: moduleA });
|
||||
>r : Symbol(r, Decl(aliasUsageInGenericFunction_main.ts, 8, 3))
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 8, 13))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 68))
|
||||
|
||||
var r2 = foo({ a: <IHasVisualizationModel>null });
|
||||
>r2 : Symbol(r2, Decl(aliasUsageInGenericFunction_main.ts, 9, 3))
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 9, 14))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_backbone.ts ===
|
||||
export class Model {
|
||||
@ -46,11 +46,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 66))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 68))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_main.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -52,7 +52,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInIndexerOfClass_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInIndexerOfClass_main.ts]
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
var Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@ -49,7 +49,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInIndexerOfClass_main.js]
|
||||
var moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
var moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
var N = (function () {
|
||||
function N() {
|
||||
this.x = moduleA;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_main.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 2, 34))
|
||||
@ -19,22 +19,22 @@ class N {
|
||||
|
||||
[idx: string]: IHasVisualizationModel
|
||||
>idx : Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 5))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
|
||||
x = moduleA;
|
||||
>x : Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 41))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
}
|
||||
class N2 {
|
||||
>N2 : Symbol(N2, Decl(aliasUsageInIndexerOfClass_main.ts, 8, 1))
|
||||
|
||||
[idx: string]: typeof moduleA
|
||||
>idx : Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 5))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
|
||||
x: IHasVisualizationModel;
|
||||
>x : Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 33))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
}
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_backbone.ts ===
|
||||
export class Model {
|
||||
@ -45,11 +45,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 65))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 67))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_main.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -45,7 +45,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInObjectLiteral_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInObjectLiteral_main.ts]
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
var Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@ -44,7 +44,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInObjectLiteral_main.js]
|
||||
var moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
var moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
var a = { x: moduleA };
|
||||
var b = { x: moduleA };
|
||||
var c = { y: { z: moduleA } };
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_main.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 2, 34))
|
||||
@ -17,25 +17,25 @@ interface IHasVisualizationModel {
|
||||
var a: { x: typeof moduleA } = { x: moduleA };
|
||||
>a : Symbol(a, Decl(aliasUsageInObjectLiteral_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 8))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 32))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
var b: { x: IHasVisualizationModel } = { x: moduleA };
|
||||
>b : Symbol(b, Decl(aliasUsageInObjectLiteral_main.ts, 6, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 40))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
||||
>c : Symbol(c, Decl(aliasUsageInObjectLiteral_main.ts, 7, 3))
|
||||
>y : Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 8))
|
||||
>z : Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 13))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
>y : Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 47))
|
||||
>z : Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 52))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_backbone.ts ===
|
||||
export class Model {
|
||||
@ -46,11 +46,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 64))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 66))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_main.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -50,7 +50,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInOrExpression_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInOrExpression_main.ts]
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
var Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@ -47,7 +47,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInOrExpression_main.js]
|
||||
var moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
var moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
var i;
|
||||
var d1 = i || moduleA;
|
||||
var d2 = i || moduleA;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 2, 34))
|
||||
@ -16,42 +16,42 @@ interface IHasVisualizationModel {
|
||||
}
|
||||
var i: IHasVisualizationModel;
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
|
||||
var d1 = i || moduleA;
|
||||
>d1 : Symbol(d1, Decl(aliasUsageInOrExpression_main.ts, 6, 3))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var d2: IHasVisualizationModel = i || moduleA;
|
||||
>d2 : Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var d2: IHasVisualizationModel = moduleA || i;
|
||||
>d2 : Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
|
||||
var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA };
|
||||
>e : Symbol(e, Decl(aliasUsageInOrExpression_main.ts, 9, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 41))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 79))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
|
||||
>f : Symbol(f, Decl(aliasUsageInOrExpression_main.ts, 10, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 41))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 78))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_backbone.ts ===
|
||||
export class Model {
|
||||
@ -62,11 +62,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 63))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 65))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -74,7 +74,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_main.ts]
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
var Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@ -52,7 +52,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
var moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_main.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78))
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 80))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 2, 34))
|
||||
@ -17,7 +17,7 @@ interface IHasVisualizationModel {
|
||||
class C<T extends IHasVisualizationModel> {
|
||||
>C : Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1))
|
||||
>T : Symbol(T, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
x: T;
|
||||
>x : Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 43))
|
||||
@ -26,11 +26,11 @@ class C<T extends IHasVisualizationModel> {
|
||||
class D extends C<IHasVisualizationModel> {
|
||||
>D : Symbol(D, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 7, 1))
|
||||
>C : Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
x = moduleA;
|
||||
>x : Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 8, 43))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 80))
|
||||
}
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_backbone.ts ===
|
||||
export class Model {
|
||||
@ -41,11 +41,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 78))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 80))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_main.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -41,7 +41,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInVarAssignment_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInVarAssignment_main.ts]
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
var Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_main.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64))
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 66))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 64))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 2, 34))
|
||||
@ -16,11 +16,11 @@ interface IHasVisualizationModel {
|
||||
}
|
||||
var i: IHasVisualizationModel;
|
||||
>i : Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 64))
|
||||
|
||||
var m: typeof moduleA = i;
|
||||
>m : Symbol(m, Decl(aliasUsageInVarAssignment_main.ts, 6, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 66))
|
||||
>i : Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_backbone.ts ===
|
||||
@ -32,11 +32,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 64))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 66))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0))
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_main.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@ -32,7 +32,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@ -9,8 +9,8 @@ export function b(a: any): any { return null; }
|
||||
//// [aliasUsedAsNameValue_2.ts]
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
|
||||
export var a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
@ -25,8 +25,8 @@ exports.b = b;
|
||||
//// [aliasUsedAsNameValue_2.js]
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
var mod = require("aliasUsedAsNameValue_0");
|
||||
var b = require("aliasUsedAsNameValue_1");
|
||||
var mod = require("./aliasUsedAsNameValue_0");
|
||||
var b = require("./aliasUsedAsNameValue_1");
|
||||
exports.a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
b.b(mod);
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
>mod : Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0))
|
||||
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47))
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 49))
|
||||
|
||||
export var a = function () {
|
||||
>a : Symbol(a, Decl(aliasUsedAsNameValue_2.ts, 5, 10))
|
||||
@ -13,7 +13,7 @@ export var a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
b.b(mod);
|
||||
>b.b : Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0))
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47))
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 49))
|
||||
>b : Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0))
|
||||
>mod : Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0))
|
||||
}
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
>mod : typeof mod
|
||||
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
>b : typeof b
|
||||
|
||||
export var a = function () {
|
||||
|
||||
@ -2,7 +2,7 @@ tests/cases/compiler/aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts
|
||||
|
||||
|
||||
==== tests/cases/compiler/aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts (1 errors) ====
|
||||
import moduleA = require("aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
var d = b.q3;
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'b'.
|
||||
|
||||
@ -7,7 +7,7 @@ interface c {
|
||||
export = c;
|
||||
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts]
|
||||
import moduleA = require("aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
var d = b.q3;
|
||||
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_0.js]
|
||||
|
||||
@ -9,7 +9,7 @@ export = Car;
|
||||
|
||||
//// [arrayOfExportedClass_1.ts]
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
|
||||
class Road {
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
=== tests/cases/compiler/arrayOfExportedClass_1.ts ===
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
>Car : Symbol(Car, Decl(arrayOfExportedClass_1.ts, 0, 0))
|
||||
|
||||
class Road {
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
|
||||
public cars: Car[];
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
@ -17,14 +17,14 @@ class Road {
|
||||
|
||||
this.cars = cars;
|
||||
>this.cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
>this : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>this : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 7, 19))
|
||||
}
|
||||
}
|
||||
|
||||
export = Road;
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
|
||||
=== tests/cases/compiler/arrayOfExportedClass_0.ts ===
|
||||
class Car {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/arrayOfExportedClass_1.ts ===
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
>Car : typeof Car
|
||||
|
||||
class Road {
|
||||
|
||||
@ -6,7 +6,7 @@ export module m {
|
||||
}
|
||||
|
||||
//// [chainedImportAlias_file1.ts]
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
import y = x;
|
||||
y.m.foo();
|
||||
|
||||
@ -18,6 +18,6 @@ var m;
|
||||
m.foo = foo;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
//// [chainedImportAlias_file1.js]
|
||||
var x = require('chainedImportAlias_file0');
|
||||
var x = require('./chainedImportAlias_file0');
|
||||
var y = x;
|
||||
y.m.foo();
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
=== tests/cases/compiler/chainedImportAlias_file1.ts ===
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
>x : Symbol(x, Decl(chainedImportAlias_file1.ts, 0, 0))
|
||||
|
||||
import y = x;
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 49))
|
||||
>x : Symbol(x, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
|
||||
y.m.foo();
|
||||
>y.m.foo : Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
|
||||
>y.m : Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 49))
|
||||
>m : Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
>foo : Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
=== tests/cases/compiler/chainedImportAlias_file1.ts ===
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
>x : typeof x
|
||||
|
||||
import y = x;
|
||||
|
||||
@ -54,7 +54,7 @@ var myvar2 = new m4.m2.c();
|
||||
|
||||
//// [commentsExternalModules_1.ts]
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
extMod.m1.fooExport();
|
||||
export var newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
@ -124,7 +124,7 @@ m4.fooExport();
|
||||
var myvar2 = new m4.m2.c();
|
||||
//// [commentsExternalModules_1.js]
|
||||
/**This is on import declaration*/
|
||||
var extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
var extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
extMod.m1.fooExport();
|
||||
exports.newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
@ -165,6 +165,6 @@ export declare module m4 {
|
||||
}
|
||||
//// [commentsExternalModules_1.d.ts]
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0");
|
||||
import extMod = require("./commentsExternalModules2_0");
|
||||
export declare var newVar: extMod.m1.m2.c;
|
||||
export declare var newVar2: extMod.m4.m2.c;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/commentsExternalModules_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
|
||||
|
||||
extMod.m1.fooExport();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/commentsExternalModules_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
>extMod : typeof extMod
|
||||
|
||||
extMod.m1.fooExport();
|
||||
|
||||
@ -6,7 +6,7 @@ export class Foo { }
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration_test.ts]
|
||||
export function bar(a: foo.Foo) { }
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration_foo.js]
|
||||
var Foo = (function () {
|
||||
@ -25,4 +25,4 @@ export declare class Foo {
|
||||
}
|
||||
//// [declFileAliasUseBeforeDeclaration_test.d.ts]
|
||||
export declare function bar(a: foo.Foo): void;
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
|
||||
@ -5,7 +5,7 @@ export function bar(a: foo.Foo) { }
|
||||
>foo : Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35))
|
||||
>Foo : Symbol(foo.Foo, Decl(declFileAliasUseBeforeDeclaration_foo.ts, 0, 0))
|
||||
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
>foo : Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35))
|
||||
|
||||
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration_foo.ts ===
|
||||
|
||||
@ -5,7 +5,7 @@ export function bar(a: foo.Foo) { }
|
||||
>foo : any
|
||||
>Foo : foo.Foo
|
||||
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
>foo : typeof foo
|
||||
|
||||
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration_foo.ts ===
|
||||
|
||||
@ -5,7 +5,7 @@ export var x: number;
|
||||
|
||||
//// [declFileForExportedImport_1.ts]
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
var y = a.x;
|
||||
|
||||
export import b = a;
|
||||
@ -14,7 +14,7 @@ var z = b.x;
|
||||
//// [declFileForExportedImport_0.js]
|
||||
//// [declFileForExportedImport_1.js]
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
exports.a = require('declFileForExportedImport_0');
|
||||
exports.a = require('./declFileForExportedImport_0');
|
||||
var y = exports.a.x;
|
||||
exports.b = exports.a;
|
||||
var z = exports.b.x;
|
||||
@ -24,5 +24,5 @@ var z = exports.b.x;
|
||||
export declare var x: number;
|
||||
//// [declFileForExportedImport_1.d.ts]
|
||||
/// <reference path="declFileForExportedImport_0.d.ts" />
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
export import b = a;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileForExportedImport_1.ts ===
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
>a : Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
|
||||
|
||||
var y = a.x;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileForExportedImport_1.ts ===
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
>a : typeof a
|
||||
|
||||
var y = a.x;
|
||||
|
||||
@ -21,7 +21,7 @@ export = m2;
|
||||
|
||||
//// [declFileImportModuleWithExportAssignment_1.ts]
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
export var a = a1;
|
||||
a.test1(null, null, null);
|
||||
|
||||
@ -31,7 +31,7 @@ var m2;
|
||||
module.exports = m2;
|
||||
//// [declFileImportModuleWithExportAssignment_1.js]
|
||||
/**This is on import declaration*/
|
||||
var a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
var a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
exports.a = a1;
|
||||
exports.a.test1(null, null, null);
|
||||
|
||||
@ -54,7 +54,7 @@ declare var m2: {
|
||||
export = m2;
|
||||
//// [declFileImportModuleWithExportAssignment_1.d.ts]
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
export declare var a: {
|
||||
(): a1.connectExport;
|
||||
test1: a1.connectModule;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
>a1 : Symbol(a1, Decl(declFileImportModuleWithExportAssignment_1.ts, 0, 0))
|
||||
|
||||
export var a = a1;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
||||
|
||||
export var a = a1;
|
||||
|
||||
@ -7,7 +7,7 @@ export function bar() { }
|
||||
export interface Buzz { }
|
||||
|
||||
//// [index.ts]
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
export = foo;
|
||||
|
||||
//// [utils.js]
|
||||
@ -16,7 +16,7 @@ exports.foo = foo;
|
||||
function bar() { }
|
||||
exports.bar = bar;
|
||||
//// [index.js]
|
||||
var utils_1 = require("utils");
|
||||
var utils_1 = require("./utils");
|
||||
module.exports = utils_1.foo;
|
||||
|
||||
|
||||
@ -26,5 +26,5 @@ export declare function bar(): void;
|
||||
export interface Buzz {
|
||||
}
|
||||
//// [index.d.ts]
|
||||
import { foo } from "utils";
|
||||
import { foo } from "./utils";
|
||||
export = foo;
|
||||
|
||||
@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Symbol(Buzz, Decl(utils.ts, 2, 25))
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
>foo : Symbol(foo, Decl(index.ts, 0, 8))
|
||||
|
||||
export = foo;
|
||||
|
||||
@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Buzz
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
>foo : () => void
|
||||
|
||||
export = foo;
|
||||
|
||||
@ -7,7 +7,7 @@ export function bar() { }
|
||||
export interface Buzz { }
|
||||
|
||||
//// [index.ts]
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
|
||||
foo();
|
||||
let obj: Buzz;
|
||||
@ -19,7 +19,7 @@ exports.foo = foo;
|
||||
function bar() { }
|
||||
exports.bar = bar;
|
||||
//// [index.js]
|
||||
var utils_1 = require("utils");
|
||||
var utils_1 = require("./utils");
|
||||
exports.bar = utils_1.bar;
|
||||
utils_1.foo();
|
||||
var obj;
|
||||
@ -31,5 +31,5 @@ export declare function bar(): void;
|
||||
export interface Buzz {
|
||||
}
|
||||
//// [index.d.ts]
|
||||
import { bar } from "utils";
|
||||
import { bar } from "./utils";
|
||||
export { bar };
|
||||
|
||||
@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Symbol(Buzz, Decl(utils.ts, 2, 25))
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
>foo : Symbol(foo, Decl(index.ts, 0, 8))
|
||||
>bar : Symbol(bar, Decl(index.ts, 0, 12))
|
||||
>Buzz : Symbol(Buzz, Decl(index.ts, 0, 17))
|
||||
|
||||
@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Buzz
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
>foo : () => void
|
||||
>bar : () => void
|
||||
>Buzz : any
|
||||
|
||||
@ -5,7 +5,7 @@ module f { export class c { } }
|
||||
export = f;
|
||||
|
||||
//// [declarationEmit_nameConflicts_0.ts]
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
export module M {
|
||||
export function f() { }
|
||||
export class C { }
|
||||
@ -61,7 +61,7 @@ var f;
|
||||
})(f || (f = {}));
|
||||
module.exports = f;
|
||||
//// [declarationEmit_nameConflicts_0.js]
|
||||
var im = require('declarationEmit_nameConflicts_1');
|
||||
var im = require('./declarationEmit_nameConflicts_1');
|
||||
var M;
|
||||
(function (M) {
|
||||
function f() { }
|
||||
@ -138,7 +138,7 @@ declare module f {
|
||||
}
|
||||
export = f;
|
||||
//// [declarationEmit_nameConflicts_0.d.ts]
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
export declare module M {
|
||||
function f(): void;
|
||||
class C {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
>im : Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 0, 0))
|
||||
|
||||
export module M {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
|
||||
export function f() { }
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
||||
@ -23,12 +23,12 @@ export module M {
|
||||
|
||||
export import a = M.f;
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
||||
|
||||
export import b = M.C;
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>C : Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27))
|
||||
|
||||
export import c = N;
|
||||
@ -41,7 +41,7 @@ export module M {
|
||||
}
|
||||
|
||||
export module M.P {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>P : Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
||||
|
||||
export function f() { }
|
||||
@ -61,45 +61,45 @@ export module M.P {
|
||||
}
|
||||
export import im = M.P.f;
|
||||
>im : Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 21, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>P : Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19))
|
||||
|
||||
export var a = M.a; // emitted incorrectly as typeof f
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 23, 14))
|
||||
>M.a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
|
||||
export var b = M.b; // ok
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 24, 14))
|
||||
>M.b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
|
||||
export var c = M.c; // ok
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 25, 14))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
|
||||
export var g = M.c.g; // ok
|
||||
>g : Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 26, 14))
|
||||
>M.c.g : Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>g : Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
||||
|
||||
export var d = M.d; // emitted incorrectly as typeof im
|
||||
>d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 27, 14))
|
||||
>M.d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
||||
}
|
||||
|
||||
export module M.Q {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>Q : Symbol(Q, Decl(declarationEmit_nameConflicts_0.ts, 30, 16))
|
||||
|
||||
export function f() { }
|
||||
@ -120,14 +120,14 @@ export module M.Q {
|
||||
export interface b extends M.b { } // ok
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 36, 5))
|
||||
>M.b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
|
||||
export interface I extends M.c.I { } // ok
|
||||
>I : Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 37, 38))
|
||||
>M.c.I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
|
||||
@ -138,7 +138,7 @@ export module M.Q {
|
||||
>I : Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 39, 21))
|
||||
>M.c.I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
>im : typeof im
|
||||
|
||||
export module M {
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,25): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(11,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(5,8): error TS2304: Cannot find name 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,8): error TS2339: Property 'x' does not exist on type '() => number'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(9,8): error TS2339: Property 'y' does not exist on type '() => number'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (2 errors) ====
|
||||
@ -29,21 +26,15 @@ tests/cases/conformance/es6/modules/m2.ts(9,8): error TS2339: Property 'y' does
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
|
||||
var x: Entity;
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'Entity'.
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
|
||||
Entity.x;
|
||||
~
|
||||
!!! error TS2339: Property 'x' does not exist on type '() => number'.
|
||||
Entity.y;
|
||||
~
|
||||
!!! error TS2339: Property 'y' does not exist on type '() => number'.
|
||||
Entity.y;
|
||||
@ -1,9 +1,6 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(3,1): error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,13): error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (2 errors) ====
|
||||
@ -25,20 +22,14 @@ tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' doe
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
~~~~~~~~
|
||||
!!! error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
|
||||
var x: Entity;
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
var z = new Entity();
|
||||
var sum = z.p1 + z.p2
|
||||
~~
|
||||
!!! error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
~~
|
||||
!!! error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
var sum = z.p1 + z.p2
|
||||
@ -1,10 +1,7 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,11): error TS2518: Only an ambient class can be merged with an interface.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,11): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(3,1): error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,13): error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (3 errors) ====
|
||||
@ -28,20 +25,14 @@ tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' doe
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
~~~~~~~~
|
||||
!!! error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
|
||||
var x: Entity;
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
var z = new Entity();
|
||||
var sum = z.p1 + z.p2
|
||||
~~
|
||||
!!! error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
~~
|
||||
!!! error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
var sum = z.p1 + z.p2
|
||||
@ -2,10 +2,10 @@
|
||||
|
||||
//// [elidingImportNames_test.ts]
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
var b = a;
|
||||
var x: typeof a;
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
var b2 = a2;
|
||||
|
||||
|
||||
@ -20,8 +20,8 @@ exports.main = 10;
|
||||
//// [elidingImportNames_main1.js]
|
||||
exports.main = 10;
|
||||
//// [elidingImportNames_test.js]
|
||||
var a = require('elidingImportNames_main'); // alias used in typeof
|
||||
var a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
var b = a;
|
||||
var x;
|
||||
var a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
var a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
var b2 = a2;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/elidingImportNames_test.ts ===
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
>a : Symbol(a, Decl(elidingImportNames_test.ts, 0, 0))
|
||||
|
||||
var b = a;
|
||||
@ -11,7 +11,7 @@ var x: typeof a;
|
||||
>x : Symbol(x, Decl(elidingImportNames_test.ts, 3, 3))
|
||||
>a : Symbol(a, Decl(elidingImportNames_test.ts, 0, 0))
|
||||
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
>a2 : Symbol(a2, Decl(elidingImportNames_test.ts, 3, 16))
|
||||
|
||||
var b2 = a2;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/elidingImportNames_test.ts ===
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
>a : typeof a
|
||||
|
||||
var b = a;
|
||||
@ -11,7 +11,7 @@ var x: typeof a;
|
||||
>x : typeof a
|
||||
>a : typeof a
|
||||
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
>a2 : typeof a2
|
||||
|
||||
var b2 = a2;
|
||||
|
||||
@ -5,7 +5,7 @@ export enum Mode { Open }
|
||||
|
||||
//// [enumFromExternalModule_1.ts]
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@ -17,5 +17,5 @@ var x = f.Mode.Open;
|
||||
var Mode = exports.Mode;
|
||||
//// [enumFromExternalModule_1.js]
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
var f = require('enumFromExternalModule_0');
|
||||
var f = require('./enumFromExternalModule_0');
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/enumFromExternalModule_1.ts ===
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
>f : Symbol(f, Decl(enumFromExternalModule_1.ts, 0, 0))
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/enumFromExternalModule_1.ts ===
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
>f : typeof f
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@ -3,7 +3,7 @@ tests/cases/compiler/errorsOnImportedSymbol_1.ts(3,9): error TS2304: Cannot find
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorsOnImportedSymbol_1.ts (2 errors) ====
|
||||
import Sammy = require("errorsOnImportedSymbol_0");
|
||||
import Sammy = require("./errorsOnImportedSymbol_0");
|
||||
var x = new Sammy.Sammy();
|
||||
~~~~~
|
||||
!!! error TS2304: Cannot find name 'Sammy'.
|
||||
|
||||
@ -9,7 +9,7 @@ interface Sammy {
|
||||
export = Sammy;
|
||||
|
||||
//// [errorsOnImportedSymbol_1.ts]
|
||||
import Sammy = require("errorsOnImportedSymbol_0");
|
||||
import Sammy = require("./errorsOnImportedSymbol_0");
|
||||
var x = new Sammy.Sammy();
|
||||
var y = Sammy.Sammy();
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
//// [client.ts]
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
|
||||
//// [server.js]
|
||||
var c = (function () {
|
||||
@ -32,7 +32,7 @@ exports.x = 10;
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
__export(require("server"));
|
||||
__export(require("./server"));
|
||||
|
||||
|
||||
//// [server.d.ts]
|
||||
@ -47,4 +47,4 @@ export declare var x: number;
|
||||
export declare module uninstantiated {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
|
||||
@ -20,5 +20,5 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
No type information for this code.
|
||||
@ -22,5 +22,5 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
No type information for this code.
|
||||
@ -14,11 +14,11 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
//// [client.ts]
|
||||
export { c } from "server";
|
||||
export { c as c2 } from "server";
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { uninstantiated } from "server";
|
||||
export { x } from "server";
|
||||
export { c } from "./server";
|
||||
export { c as c2 } from "./server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
export { uninstantiated } from "./server";
|
||||
export { x } from "./server";
|
||||
|
||||
//// [server.js]
|
||||
var c = (function () {
|
||||
@ -33,13 +33,13 @@ var m;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
exports.x = 10;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.c = server_1.c;
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.c2 = server_2.c;
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.instantiatedModule = server_3.m;
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x = server_4.x;
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ export declare var x: number;
|
||||
export declare module uninstantiated {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
export { c } from "server";
|
||||
export { c as c2 } from "server";
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { uninstantiated } from "server";
|
||||
export { x } from "server";
|
||||
export { c } from "./server";
|
||||
export { c as c2 } from "./server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
export { uninstantiated } from "./server";
|
||||
export { x } from "./server";
|
||||
|
||||
@ -20,21 +20,21 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export { c } from "server";
|
||||
export { c } from "./server";
|
||||
>c : Symbol(c, Decl(client.ts, 0, 8))
|
||||
|
||||
export { c as c2 } from "server";
|
||||
export { c as c2 } from "./server";
|
||||
>c : Symbol(c2, Decl(client.ts, 1, 8))
|
||||
>c2 : Symbol(c2, Decl(client.ts, 1, 8))
|
||||
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
>i : Symbol(i, Decl(client.ts, 2, 8))
|
||||
>m : Symbol(instantiatedModule, Decl(client.ts, 2, 11))
|
||||
>instantiatedModule : Symbol(instantiatedModule, Decl(client.ts, 2, 11))
|
||||
|
||||
export { uninstantiated } from "server";
|
||||
export { uninstantiated } from "./server";
|
||||
>uninstantiated : Symbol(uninstantiated, Decl(client.ts, 3, 8))
|
||||
|
||||
export { x } from "server";
|
||||
export { x } from "./server";
|
||||
>x : Symbol(x, Decl(client.ts, 4, 8))
|
||||
|
||||
|
||||
@ -22,21 +22,21 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export { c } from "server";
|
||||
export { c } from "./server";
|
||||
>c : typeof c
|
||||
|
||||
export { c as c2 } from "server";
|
||||
export { c as c2 } from "./server";
|
||||
>c : typeof c
|
||||
>c2 : typeof c
|
||||
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
>i : any
|
||||
>m : typeof m
|
||||
>instantiatedModule : typeof m
|
||||
|
||||
export { uninstantiated } from "server";
|
||||
export { uninstantiated } from "./server";
|
||||
>uninstantiated : any
|
||||
|
||||
export { x } from "server";
|
||||
export { x } from "./server";
|
||||
>x : number
|
||||
|
||||
|
||||
@ -6,9 +6,9 @@ class c { }
|
||||
export default c;
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
export var x = new defaultBinding();
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
|
||||
|
||||
//// [server.js]
|
||||
@ -20,7 +20,7 @@ var c = (function () {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = c;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x = new server_1.default();
|
||||
|
||||
|
||||
@ -29,5 +29,5 @@ declare class c {
|
||||
}
|
||||
export default c;
|
||||
//// [client.d.ts]
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
export declare var x: defaultBinding;
|
||||
|
||||
@ -7,13 +7,13 @@ export default c;
|
||||
>c : Symbol(c, Decl(server.ts, 0, 0))
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6))
|
||||
|
||||
export var x = new defaultBinding();
|
||||
>x : Symbol(x, Decl(client.ts, 1, 10))
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6))
|
||||
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 6))
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ export default c;
|
||||
>c : c
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
export var x = new defaultBinding();
|
||||
@ -15,6 +15,6 @@ export var x = new defaultBinding();
|
||||
>new defaultBinding() : defaultBinding
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
>defaultBinding2 : typeof defaultBinding
|
||||
|
||||
|
||||
@ -10,16 +10,16 @@ error TS1204: Cannot compile modules into 'commonjs', 'amd', 'system' or 'umd' w
|
||||
export default {};
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (0 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = m;
|
||||
|
||||
@ -8,17 +8,17 @@ export var m = a;
|
||||
export default {};
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = m;
|
||||
|
||||
|
||||
@ -28,16 +28,16 @@ export var x = a;
|
||||
export var m = a;
|
||||
export default {};
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.js]
|
||||
import { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = a;
|
||||
import { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = b;
|
||||
import { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = x;
|
||||
var x1 = y;
|
||||
import { x as z } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { x as z } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = z;
|
||||
import { m } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { m } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = m;
|
||||
|
||||
|
||||
|
||||
@ -12,27 +12,27 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(1
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
var x: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
var x: number = defaultBinding6;
|
||||
|
||||
@ -6,17 +6,17 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding6;
|
||||
|
||||
|
||||
@ -25,17 +25,17 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6.default;
|
||||
|
||||
|
||||
|
||||
@ -18,23 +18,23 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/client.ts (12 errors) ====
|
||||
export import defaultBinding1, { } from "server";
|
||||
export import defaultBinding1, { } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
export var x1: number = defaultBinding1;
|
||||
export import defaultBinding2, { a } from "server";
|
||||
export import defaultBinding2, { a } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding2;
|
||||
export import defaultBinding3, { a as b } from "server";
|
||||
export import defaultBinding3, { a as b } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding3;
|
||||
export import defaultBinding4, { x, a as y } from "server";
|
||||
export import defaultBinding4, { x, a as y } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
@ -42,13 +42,13 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding4;
|
||||
export import defaultBinding5, { x as z, } from "server";
|
||||
export import defaultBinding5, { x as z, } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
export var x1: number = defaultBinding5;
|
||||
export import defaultBinding6, { m, } from "server";
|
||||
export import defaultBinding6, { m, } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
|
||||
@ -6,17 +6,17 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [client.ts]
|
||||
export import defaultBinding1, { } from "server";
|
||||
export import defaultBinding1, { } from "./server";
|
||||
export var x1: number = defaultBinding1;
|
||||
export import defaultBinding2, { a } from "server";
|
||||
export import defaultBinding2, { a } from "./server";
|
||||
export var x1: number = defaultBinding2;
|
||||
export import defaultBinding3, { a as b } from "server";
|
||||
export import defaultBinding3, { a as b } from "./server";
|
||||
export var x1: number = defaultBinding3;
|
||||
export import defaultBinding4, { x, a as y } from "server";
|
||||
export import defaultBinding4, { x, a as y } from "./server";
|
||||
export var x1: number = defaultBinding4;
|
||||
export import defaultBinding5, { x as z, } from "server";
|
||||
export import defaultBinding5, { x as z, } from "./server";
|
||||
export var x1: number = defaultBinding5;
|
||||
export import defaultBinding6, { m, } from "server";
|
||||
export import defaultBinding6, { m, } from "./server";
|
||||
export var x1: number = defaultBinding6;
|
||||
|
||||
|
||||
@ -25,17 +25,17 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = server_1.default;
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x1 = server_2.default;
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x1 = server_3.default;
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x1 = server_4.default;
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x1 = server_5.default;
|
||||
var server_6 = require("server");
|
||||
var server_6 = require("./server");
|
||||
exports.x1 = server_6.default;
|
||||
|
||||
|
||||
|
||||
@ -16,27 +16,27 @@ tests/cases/compiler/client.ts(11,8): error TS1192: Module '"tests/cases/compile
|
||||
export class x11 { }
|
||||
|
||||
==== tests/cases/compiler/client.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x1 = new a();
|
||||
import defaultBinding3, { a11 as b } from "server";
|
||||
import defaultBinding3, { a11 as b } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x2 = new b();
|
||||
import defaultBinding4, { x, a12 as y } from "server";
|
||||
import defaultBinding4, { x, a12 as y } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x4 = new x();
|
||||
export var x5 = new y();
|
||||
import defaultBinding5, { x11 as z, } from "server";
|
||||
import defaultBinding5, { x11 as z, } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x3 = new z();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x6 = new m();
|
||||
|
||||
@ -10,17 +10,17 @@ export class a12 { }
|
||||
export class x11 { }
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
export var x1 = new a();
|
||||
import defaultBinding3, { a11 as b } from "server";
|
||||
import defaultBinding3, { a11 as b } from "./server";
|
||||
export var x2 = new b();
|
||||
import defaultBinding4, { x, a12 as y } from "server";
|
||||
import defaultBinding4, { x, a12 as y } from "./server";
|
||||
export var x4 = new x();
|
||||
export var x5 = new y();
|
||||
import defaultBinding5, { x11 as z, } from "server";
|
||||
import defaultBinding5, { x11 as z, } from "./server";
|
||||
export var x3 = new z();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
export var x6 = new m();
|
||||
|
||||
|
||||
@ -62,16 +62,16 @@ var x11 = (function () {
|
||||
})();
|
||||
exports.x11 = x11;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = new server_1.a();
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x2 = new server_2.a11();
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x4 = new server_3.x();
|
||||
exports.x5 = new server_3.a12();
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x3 = new server_4.x11();
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x6 = new server_5.m();
|
||||
|
||||
|
||||
@ -89,14 +89,14 @@ export declare class a12 {
|
||||
export declare class x11 {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
import { a } from "server";
|
||||
import { a } from "./server";
|
||||
export declare var x1: a;
|
||||
import { a11 as b } from "server";
|
||||
import { a11 as b } from "./server";
|
||||
export declare var x2: b;
|
||||
import { x, a12 as y } from "server";
|
||||
import { x, a12 as y } from "./server";
|
||||
export declare var x4: x;
|
||||
export declare var x5: y;
|
||||
import { x11 as z } from "server";
|
||||
import { x11 as z } from "./server";
|
||||
export declare var x3: z;
|
||||
import { m } from "server";
|
||||
import { m } from "./server";
|
||||
export declare var x6: m;
|
||||
|
||||
@ -12,27 +12,27 @@ tests/cases/compiler/client.ts(11,27): error TS2305: Module '"tests/cases/compil
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/client.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
export var x1 = new defaultBinding1();
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x2 = new defaultBinding2();
|
||||
import defaultBinding3, { a as b } from "server";
|
||||
import defaultBinding3, { a as b } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x3 = new defaultBinding3();
|
||||
import defaultBinding4, { x, a as y } from "server";
|
||||
import defaultBinding4, { x, a as y } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x4 = new defaultBinding4();
|
||||
import defaultBinding5, { x as z, } from "server";
|
||||
import defaultBinding5, { x as z, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
export var x5 = new defaultBinding5();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
export var x6 = new defaultBinding6();
|
||||
@ -6,17 +6,17 @@ class a { }
|
||||
export default a;
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
export var x1 = new defaultBinding1();
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
export var x2 = new defaultBinding2();
|
||||
import defaultBinding3, { a as b } from "server";
|
||||
import defaultBinding3, { a as b } from "./server";
|
||||
export var x3 = new defaultBinding3();
|
||||
import defaultBinding4, { x, a as y } from "server";
|
||||
import defaultBinding4, { x, a as y } from "./server";
|
||||
export var x4 = new defaultBinding4();
|
||||
import defaultBinding5, { x as z, } from "server";
|
||||
import defaultBinding5, { x as z, } from "./server";
|
||||
export var x5 = new defaultBinding5();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
export var x6 = new defaultBinding6();
|
||||
|
||||
//// [server.js]
|
||||
@ -28,17 +28,17 @@ var a = (function () {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = new server_1.default();
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x2 = new server_2.default();
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x3 = new server_3.default();
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x4 = new server_4.default();
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x5 = new server_5.default();
|
||||
var server_6 = require("server");
|
||||
var server_6 = require("./server");
|
||||
exports.x6 = new server_6.default();
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ declare class a {
|
||||
}
|
||||
export default a;
|
||||
//// [client.d.ts]
|
||||
import defaultBinding1 from "server";
|
||||
import defaultBinding1 from "./server";
|
||||
export declare var x1: defaultBinding1;
|
||||
export declare var x2: defaultBinding1;
|
||||
export declare var x3: defaultBinding1;
|
||||
|
||||
@ -13,27 +13,27 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(11
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = m;
|
||||
|
||||
@ -7,17 +7,17 @@ export var x = a;
|
||||
export var m = a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = m;
|
||||
|
||||
|
||||
@ -26,16 +26,16 @@ exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.x;
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4.x;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5.m;
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
var x: number = defaultBinding;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js]
|
||||
@ -14,7 +14,7 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var x = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1.default;
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ export default a;
|
||||
>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 1, 3))
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6))
|
||||
>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22))
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ export default a;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
>defaultBinding : number
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ tests/cases/compiler/client.ts(1,8): error TS1192: Module '"tests/cases/compiler
|
||||
export class a { }
|
||||
|
||||
==== tests/cases/compiler/client.ts (1 errors) ====
|
||||
import defaultBinding, * as nameSpaceBinding from "server";
|
||||
import defaultBinding, * as nameSpaceBinding from "./server";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x = new nameSpaceBinding.a();
|
||||
@ -5,7 +5,7 @@
|
||||
export class a { }
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "server";
|
||||
import defaultBinding, * as nameSpaceBinding from "./server";
|
||||
export var x = new nameSpaceBinding.a();
|
||||
|
||||
//// [server.js]
|
||||
@ -16,7 +16,7 @@ var a = (function () {
|
||||
})();
|
||||
exports.a = a;
|
||||
//// [client.js]
|
||||
var server_1 = require("server"), nameSpaceBinding = server_1;
|
||||
var server_1 = require("./server"), nameSpaceBinding = server_1;
|
||||
exports.x = new nameSpaceBinding.a();
|
||||
|
||||
|
||||
@ -24,5 +24,5 @@ exports.x = new nameSpaceBinding.a();
|
||||
export declare class a {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
import * as nameSpaceBinding from "server";
|
||||
import * as nameSpaceBinding from "./server";
|
||||
export declare var x: nameSpaceBinding.a;
|
||||
|
||||
@ -6,7 +6,7 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts (1 errors) ====
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export.
|
||||
var x: number = nameSpaceBinding.a;
|
||||
@ -5,13 +5,13 @@
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
var x: number = nameSpaceBinding.a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js]
|
||||
exports.a = 10;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var x = nameSpaceBinding.a;
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ tests/cases/compiler/client.ts(1,15): error TS1192: Module '"tests/cases/compile
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/client.ts (2 errors) ====
|
||||
export import defaultBinding, * as nameSpaceBinding from "server";
|
||||
export import defaultBinding, * as nameSpaceBinding from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
@ -5,13 +5,13 @@
|
||||
export var a = 10;
|
||||
|
||||
//// [client.ts]
|
||||
export import defaultBinding, * as nameSpaceBinding from "server";
|
||||
export import defaultBinding, * as nameSpaceBinding from "./server";
|
||||
export var x: number = nameSpaceBinding.a;
|
||||
|
||||
//// [server.js]
|
||||
exports.a = 10;
|
||||
//// [client.js]
|
||||
var server_1 = require("server"), nameSpaceBinding = server_1;
|
||||
var server_1 = require("./server"), nameSpaceBinding = server_1;
|
||||
exports.x = nameSpaceBinding.a;
|
||||
|
||||
|
||||
|
||||
@ -7,6 +7,6 @@ tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1192: Modul
|
||||
export = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts (1 errors) ====
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingInEs5_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' has no default export.
|
||||
@ -6,7 +6,7 @@ var a = 10;
|
||||
export = a;
|
||||
|
||||
//// [es6ImportDefaultBindingInEs5_1.ts]
|
||||
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingInEs5_0";
|
||||
|
||||
//// [es6ImportDefaultBindingInEs5_0.js]
|
||||
var a = 10;
|
||||
|
||||
@ -9,18 +9,18 @@ tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts(8,8): error TS2300:
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingMergeErrors_1.ts (3 errors) ====
|
||||
import defaultBinding from "es6ImportDefaultBindingMergeErrors_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0";
|
||||
interface defaultBinding { // This is ok
|
||||
}
|
||||
var x = defaultBinding;
|
||||
import defaultBinding2 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2440: Import declaration conflicts with local declaration of 'defaultBinding2'
|
||||
var defaultBinding2 = "hello world";
|
||||
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding3'.
|
||||
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
||||
import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'defaultBinding3'.
|
||||
|
||||
@ -6,14 +6,14 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [es6ImportDefaultBindingMergeErrors_1.ts]
|
||||
import defaultBinding from "es6ImportDefaultBindingMergeErrors_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingMergeErrors_0";
|
||||
interface defaultBinding { // This is ok
|
||||
}
|
||||
var x = defaultBinding;
|
||||
import defaultBinding2 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
import defaultBinding2 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
var defaultBinding2 = "hello world";
|
||||
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
||||
import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
||||
import defaultBinding3 from "./es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
||||
|
||||
|
||||
//// [es6ImportDefaultBindingMergeErrors_0.js]
|
||||
@ -21,6 +21,6 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [es6ImportDefaultBindingMergeErrors_1.js]
|
||||
var es6ImportDefaultBindingMergeErrors_0_1 = require("es6ImportDefaultBindingMergeErrors_0");
|
||||
var es6ImportDefaultBindingMergeErrors_0_1 = require("./es6ImportDefaultBindingMergeErrors_0");
|
||||
var x = es6ImportDefaultBindingMergeErrors_0_1.default;
|
||||
var defaultBinding2 = "hello world";
|
||||
|
||||
@ -6,7 +6,7 @@ tests/cases/compiler/es6ImportDefaultBindingNoDefaultProperty_1.ts(1,8): error T
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingNoDefaultProperty_1.ts (1 errors) ====
|
||||
import defaultBinding from "es6ImportDefaultBindingNoDefaultProperty_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingNoDefaultProperty_0";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingNoDefaultProperty_0"' has no default export.
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
export var a = 10;
|
||||
|
||||
//// [es6ImportDefaultBindingNoDefaultProperty_1.ts]
|
||||
import defaultBinding from "es6ImportDefaultBindingNoDefaultProperty_0";
|
||||
import defaultBinding from "./es6ImportDefaultBindingNoDefaultProperty_0";
|
||||
|
||||
|
||||
//// [es6ImportDefaultBindingNoDefaultProperty_0.js]
|
||||
|
||||
@ -7,7 +7,7 @@ error TS1204: Cannot compile modules into 'commonjs', 'amd', 'system' or 'umd' w
|
||||
export var a = 10;
|
||||
|
||||
==== tests/cases/compiler/es6ImportNameSpaceImport_1.ts (0 errors) ====
|
||||
import * as nameSpaceBinding from "es6ImportNameSpaceImport_0";
|
||||
import * as nameSpaceBinding from "./es6ImportNameSpaceImport_0";
|
||||
var x = nameSpaceBinding.a;
|
||||
import * as nameSpaceBinding2 from "es6ImportNameSpaceImport_0"; // elide this
|
||||
import * as nameSpaceBinding2 from "./es6ImportNameSpaceImport_0"; // elide this
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user