Fixes old tests

This commit is contained in:
Tingan Ho
2015-05-13 10:59:40 +08:00
parent da494618ae
commit 60bf572c42
195 changed files with 747 additions and 1049 deletions
@@ -16,6 +16,5 @@ var A;
}
return B;
})();
A.beez;
A.beez2 = new Array();
})(A || (A = {}));
@@ -39,14 +39,12 @@ var A;
(function (A) {
var B;
(function (B) {
B.x;
})(B = A.B || (A.B = {}));
})(A || (A = {}));
var A;
(function (A) {
var B;
(function (B) {
B.x;
})(B || (B = {}));
})(A || (A = {}));
// ensure the right var decl is exported
@@ -55,7 +55,6 @@ var E;
})(E || (E = {}));
var M;
(function (M) {
M.a;
})(M || (M = {}));
var a;
var b;
@@ -56,7 +56,6 @@ var E;
})(E || (E = {}));
var M;
(function (M) {
M.a;
})(M || (M = {}));
var a;
var b;
@@ -19,7 +19,6 @@ export var a = function () {
//// [aliasUsedAsNameValue_0.js]
exports.id;
//// [aliasUsedAsNameValue_1.js]
function b(a) { return null; }
exports.b = b;
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.obj;
__test2__.__val__obj = __test2__.obj;
})(__test2__ || (__test2__ = {}));
__test2__.__val__obj = __test1__.__val__obj4;
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.obj;
__test2__.__val__obj = __test2__.obj;
})(__test2__ || (__test2__ = {}));
__test2__.__val__obj = __test1__.__val__obj4;
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -19,7 +19,6 @@ var __test1__;
})(__test1__ || (__test1__ = {}));
var __test2__;
(function (__test2__) {
__test2__.aa;
;
__test2__.__val__aa = __test2__.aa;
})(__test2__ || (__test2__ = {}));
@@ -93,7 +93,6 @@ this = value;
// identifiers: module, class, enum, function
var M;
(function (M) {
M.a;
})(M || (M = {}));
M = value;
C = value;
@@ -79,7 +79,6 @@ x = ''; // Error
(x) = ''; // Error
var M;
(function (M) {
M.y;
})(M || (M = {}));
M.y = 3; // OK
(M).y = 3; // OK
@@ -93,7 +92,6 @@ var M2;
(function (M2) {
var M3;
(function (M3) {
M3.x;
})(M3 = M2.M3 || (M2.M3 = {}));
M3 = { x: 3 }; // Error
})(M2 || (M2 = {}));
@@ -84,7 +84,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any other type var
@@ -50,7 +50,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// boolean type var
@@ -57,7 +57,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// number type var
@@ -56,7 +56,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// string type var
@@ -27,7 +27,6 @@ var A = (function () {
})();
var A;
(function (A) {
A.v;
})(A || (A = {}));
var Foo;
(function (Foo) {
@@ -16,7 +16,6 @@ export class Test1 {
}
//// [classMemberInitializerWithLamdaScoping3_0.js]
exports.field1;
//// [classMemberInitializerWithLamdaScoping3_1.js]
var Test1 = (function () {
function Test1(field1) {
@@ -6,5 +6,4 @@ export var b: number;
//// [commentsBeforeVariableStatement1.js]
define(["require", "exports"], function (require, exports) {
/** b's comment*/
exports.b;
});
@@ -67,7 +67,6 @@ define(["require", "exports"], function (require, exports) {
var m1;
(function (m1) {
/** b's comment*/
m1.b;
/** foo's comment*/
function foo() {
return m1.b;
@@ -98,7 +97,6 @@ define(["require", "exports"], function (require, exports) {
var m4;
(function (m4) {
/** b's comment */
m4.b;
/** foo's comment
*/
function foo() {
@@ -67,7 +67,6 @@ define(["require", "exports"], function (require, exports) {
var m1;
(function (m1) {
/** b's comment*/
m1.b;
/** foo's comment*/
function foo() {
return m1.b;
@@ -98,7 +97,6 @@ define(["require", "exports"], function (require, exports) {
var m4;
(function (m4) {
/** b's comment */
m4.b;
/** foo's comment
*/
function foo() {
@@ -66,7 +66,6 @@ export var newVar2 = new extMod.m4.m2.c();
var m1;
(function (m1) {
/** b's comment*/
m1.b;
/** foo's comment*/
function foo() {
return m1.b;
@@ -97,7 +96,6 @@ var myvar = new m1.m2.c();
var m4;
(function (m4) {
/** b's comment */
m4.b;
/** foo's comment
*/
function foo() {
@@ -102,7 +102,6 @@ new m7.m8.m9.c();
var m1;
(function (m1) {
/** b's comment*/
m1.b;
/** foo's comment*/
function foo() {
return m1.b;
@@ -163,7 +163,6 @@ var m1;
return C5;
})();
m1.C5 = C5;
m1.v2;
})(m1 || (m1 = {}));
var C2 = (function () {
function C2() {
@@ -156,7 +156,6 @@ this += value;
// identifiers: module, class, enum, function
var M;
(function (M) {
M.a;
})(M || (M = {}));
M *= value;
M += value;
@@ -283,7 +283,6 @@ var C4T5 = (function () {
// CONTEXT: Module property assignment
var C5T5;
(function (C5T5) {
C5T5.foo;
C5T5.foo = function (i, s) {
return s;
};
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -20,7 +20,6 @@ export var x: SubModule.m.m3.c;
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.js]
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.js]
exports.x;
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts]
@@ -24,7 +24,6 @@ export = m;
//// [declFileExportAssignmentImportInternalModule.js]
var m3;
(function (m3) {
m3.server;
})(m3 || (m3 = {}));
var m = m3;
module.exports = m;
@@ -17,7 +17,6 @@ define(["require", "exports"], function (require, exports) {
});
//// [declFileExportAssignmentOfGenericInterface_1.js]
define(["require", "exports"], function (require, exports) {
exports.x;
exports.x.a;
});
@@ -54,7 +54,6 @@ define(["require", "exports", "declFileExportImportChain_b1"], function (require
});
//// [declFileExportImportChain_d.js]
define(["require", "exports"], function (require, exports) {
exports.x;
});
@@ -47,7 +47,6 @@ define(["require", "exports", "declFileExportImportChain2_b"], function (require
});
//// [declFileExportImportChain2_d.js]
define(["require", "exports"], function (require, exports) {
exports.x;
});
@@ -12,7 +12,6 @@ export import b = a;
var z = b.x;
//// [declFileForExportedImport_0.js]
exports.x;
//// [declFileForExportedImport_1.js]
///<reference path='declFileForExportedImport_0.ts'/>
exports.a = require('declFileForExportedImport_0');
@@ -80,7 +80,6 @@ var C;
})();
C.D = D;
})(C = exports.C || (exports.C = {}));
exports.a;
exports.b = C.F;
exports.c = C.F2;
exports.d = C.F3;
@@ -34,7 +34,6 @@ module M {
//// [declFileTypeAnnotationTypeAlias.js]
var M;
(function (M) {
M.x;
var c = (function () {
function c() {
}
@@ -61,7 +60,6 @@ var M;
return Window;
})();
N.Window = Window;
N.p;
})(N = M.N || (M.N = {}));
})(M || (M = {}));
@@ -52,7 +52,7 @@ var M;
return Window;
})();
N.Window = Window;
N.p; // Should report error that W is private
// Should report error that W is private
})(N = M.N || (M.N = {}));
})(M || (M = {}));
var M1;
@@ -65,7 +65,7 @@ var M1;
return Window;
})();
N.Window = Window;
N.p; // No error
// No error
})(N = M1.N || (M1.N = {}));
})(M1 || (M1 = {}));
var M2;
@@ -51,7 +51,6 @@ var m;
})();
m2.public1 = public1;
})(m2 || (m2 = {}));
m.x;
m.x2 = {
x: new private1(),
y: new m2.public1(),
@@ -61,9 +60,7 @@ var m;
};
m.x3 = m.x;
// Function type
m.y;
m.y2 = m.y;
// constructor type
m.z;
m.z2 = m.z;
})(m || (m = {}));
@@ -50,11 +50,9 @@ var m;
// Directly using names from this module
var x;
var y = new private1();
m.k;
m.l = new private1();
var x2;
var y2 = new public1();
m.k2;
m.l2 = new public1();
var m2;
(function (m2) {
@@ -67,6 +65,5 @@ var m;
})(m2 || (m2 = {}));
var x3;
var y3 = new m2.public2();
m.k3;
m.l3 = new m2.public2();
})(m || (m = {}));
@@ -16,13 +16,11 @@ var m2_2: typeof m2;
//// [declFileTypeofModule.js]
var m1;
(function (m1) {
m1.c;
})(m1 || (m1 = {}));
var m1_1 = m1;
var m1_2;
var m2;
(function (m2) {
m2.d;
})(m2 || (m2 = {}));
var m2_1 = m2;
var m2_2;
@@ -22,7 +22,6 @@ var m;
})();
c_1.c = c;
})(c = m.c || (m.c = {}));
m.a;
})(m || (m = {}));
module.exports = m;
@@ -32,7 +32,6 @@ var X;
base.C = C;
var M;
(function (M) {
M.v;
})(M = base.M || (base.M = {}));
(function (E) {
})(base.E || (base.E = {}));
@@ -74,7 +74,7 @@ var M;
D[D["f"] = 0] = "f";
})(P.D || (P.D = {}));
var D = P.D;
P.v; // ok
// ok
P.w = M.D.f; // error, should be typeof M.D.f
P.x = M.C.f; // error, should be typeof M.C.f
P.x = M.E.f; // error, should be typeof M.E.f
@@ -9,7 +9,7 @@ export module M {
//// [declarationEmit_nameConflictsWithAlias.js]
var M;
(function (M) {
M.w; // Gets emitted as C.I, which is the wrong interface
// Gets emitted as C.I, which is the wrong interface
})(M = exports.M || (exports.M = {}));
@@ -13,5 +13,4 @@ module M2 {
//// [decoratorOnImportEquals1.js]
var M1;
(function (M1) {
M1.X;
})(M1 || (M1 = {}));
@@ -10,5 +10,4 @@ import lib = require('./decoratorOnImportEquals2_0');
declare function dec<T>(target: T): T;
//// [decoratorOnImportEquals2_0.js]
exports.X;
//// [decoratorOnImportEquals2_1.js]
@@ -61,7 +61,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any type var
@@ -93,7 +93,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any type var
@@ -50,7 +50,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// number type var
@@ -59,7 +59,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
//number type var
@@ -66,7 +66,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// boolean type var
@@ -78,7 +78,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// string type var
@@ -62,7 +62,6 @@ var f5 = function (a) {
};
var U;
(function (U) {
U.x;
})(U || (U = {}));
var f6 = function (t) {
if (t === void 0) { t = T; }
@@ -83,7 +83,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any type var
@@ -50,7 +50,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// boolean type var
@@ -58,7 +58,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// number type var
@@ -57,7 +57,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// string type var
@@ -117,7 +117,7 @@ var Foo = (function () {
})();
var Foo;
(function (Foo) {
Foo.x; // error for redeclaring var in a different parent
// error for redeclaring var in a different parent
})(Foo || (Foo = {}));
var N;
(function (N) {
@@ -83,9 +83,9 @@ define(["require", "exports"], function (require, exports) {
var M2;
(function (M2) {
var v;
M2.v; // one error (visibility)
// one error (visibility)
var w;
M2.w; // two errors (visibility and type mismatch)
// two errors (visibility and type mismatch)
})(M2 || (M2 = {}));
var M;
(function (M) {
@@ -140,11 +140,9 @@ b++;
// modules
var moduleType1;
(function (moduleType1) {
moduleType1.baz1;
})(moduleType1 || (moduleType1 = {}));
var moduleType\u0032;
(function (moduleType2) {
moduleType2.baz2;
})(moduleType\u0032 || (moduleType\u0032 = {}));
moduleType1.baz1 = 3;
moduleType\u0031.baz1 = 3;
@@ -12,7 +12,6 @@ export = M2; // should not error
define(["require", "exports"], function (require, exports) {
var M;
(function (M) {
M.x;
})(M || (M = {}));
var M2 = M;
return M2;
@@ -16,7 +16,6 @@ var n: number = modM.x;
define(["require", "exports"], function (require, exports) {
var M;
(function (M) {
M.x;
})(M || (M = {}));
return M;
});
@@ -25,7 +25,6 @@ export = M;
define(["require", "exports"], function (require, exports) {
var M;
(function (M) {
M.server;
})(M || (M = {}));
return M;
});
@@ -45,9 +45,5 @@ var foo;
return C2;
})();
// None of the types are exported, so per section 10.3, should all be errors
foo.e;
foo.f;
foo.g;
foo.h;
})(foo || (foo = {}));
var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'.
@@ -55,7 +55,6 @@ define(["require", "exports"], function (require, exports) {
exports.E = E;
var M;
(function (M) {
M.x;
})(M || (M = {}));
exports.M = M;
var a = M.x;
@@ -54,7 +54,6 @@ var E;
exports.E = E;
var M;
(function (M) {
M.x;
})(M || (M = {}));
exports.M = M;
var a = M.x;
@@ -57,7 +57,6 @@ define(["require", "exports"], function (require, exports) {
exports.E1 = exports.E;
var M;
(function (M) {
M.x;
})(M = exports.M || (exports.M = {}));
exports.M1 = exports.M;
exports.a = M.x;
@@ -56,7 +56,6 @@ var E = exports.E;
exports.E1 = exports.E;
var M;
(function (M) {
M.x;
})(M = exports.M || (exports.M = {}));
exports.M1 = exports.M;
exports.a = M.x;
@@ -10,6 +10,5 @@ module foo {
function foo(y, z) { return y; }
var foo;
(function (foo) {
foo.x;
var y = 1;
})(foo || (foo = {}));
@@ -14,6 +14,5 @@ var foo = (function () {
})();
var foo;
(function (foo) {
foo.x;
var y = 1;
})(foo || (foo = {}));
-7
View File
@@ -805,7 +805,6 @@ define(["require", "exports"], function (require, exports) {
;
;
;
M.eV;
function eF() { }
M.eF = eF;
;
@@ -822,7 +821,6 @@ define(["require", "exports"], function (require, exports) {
;
;
})(M || (M = {}));
M_1.eV;
function eF() { }
M_1.eF = eF;
;
@@ -884,7 +882,6 @@ define(["require", "exports"], function (require, exports) {
;
;
;
eM.eV;
function eF() { }
eM.eF = eF;
;
@@ -903,7 +900,6 @@ define(["require", "exports"], function (require, exports) {
})(eM = M_1.eM || (M_1.eM = {}));
;
})(M || (M = {}));
exports.eV;
function eF() { }
exports.eF = eF;
;
@@ -1014,7 +1010,6 @@ define(["require", "exports"], function (require, exports) {
;
;
;
M.eV;
function eF() { }
M.eF = eF;
;
@@ -1031,7 +1026,6 @@ define(["require", "exports"], function (require, exports) {
;
;
})(M || (M = {}));
eM_1.eV;
function eF() { }
eM_1.eF = eF;
;
@@ -1093,7 +1087,6 @@ define(["require", "exports"], function (require, exports) {
;
;
;
eM.eV;
function eF() { }
eM.eF = eF;
;
-3
View File
@@ -88,7 +88,6 @@ var d = (function () {
return d;
})();
exports.d = d;
exports.x;
function foo() { return null; }
exports.foo = foo;
//// [importDecl_require1.js]
@@ -108,7 +107,6 @@ var d = (function () {
return d;
})();
exports.d = d;
exports.x;
function foo() { return null; }
exports.foo = foo;
//// [importDecl_require3.js]
@@ -118,7 +116,6 @@ var d = (function () {
return d;
})();
exports.d = d;
exports.x;
function foo() { return null; }
exports.foo = foo;
//// [importDecl_require4.js]
@@ -19,7 +19,6 @@ var B = (function () {
})();
exports.B = B;
//// [importDeclarationUsedAsTypeQuery_1.js]
exports.x;
//// [importDeclarationUsedAsTypeQuery_require.d.ts]
@@ -13,7 +13,6 @@ module B {
//// [importOnAliasedIdentifiers.js]
var A;
(function (A) {
A.X;
})(A || (A = {}));
var B;
(function (B) {
@@ -61,7 +61,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any type var
@@ -90,7 +90,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// any type var
@@ -50,7 +50,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// number type var
@@ -59,7 +59,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
//number type var
@@ -66,7 +66,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// boolean type var
@@ -78,7 +78,6 @@ var A = (function () {
})();
var M;
(function (M) {
M.n;
})(M || (M = {}));
var objA = new A();
// string type var
@@ -13,7 +13,6 @@ module c {
//// [internalAliasInterface.js]
var c;
(function (c) {
c.x;
})(c || (c = {}));
@@ -14,7 +14,6 @@ export module c {
define(["require", "exports"], function (require, exports) {
var c;
(function (c) {
c.x;
})(c = exports.c || (exports.c = {}));
});
@@ -14,7 +14,6 @@ export module c {
define(["require", "exports"], function (require, exports) {
var c;
(function (c) {
c.x;
})(c = exports.c || (exports.c = {}));
});
@@ -15,7 +15,6 @@ var x: c.b;
define(["require", "exports"], function (require, exports) {
var c;
(function (c) {
c.x;
})(c = exports.c || (exports.c = {}));
var x;
});
@@ -9,7 +9,6 @@ export var x: b;
//// [internalAliasInterfaceInsideTopLevelModuleWithExport.js]
exports.x;
//// [internalAliasInterfaceInsideTopLevelModuleWithExport.d.ts]
@@ -10,7 +10,6 @@ export var x: b;
//// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.js]
define(["require", "exports"], function (require, exports) {
exports.x;
});
@@ -16,7 +16,6 @@ module c {
//// [internalAliasUninitializedModule.js]
var c;
(function (c) {
c.x;
c.x.foo();
})(c || (c = {}));
@@ -16,7 +16,6 @@ export module c {
//// [internalAliasUninitializedModuleInsideLocalModuleWithExport.js]
var c;
(function (c) {
c.x;
c.x.foo();
})(c = exports.c || (exports.c = {}));
@@ -16,7 +16,6 @@ export module c {
//// [internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js]
var c;
(function (c) {
c.x;
c.x.foo();
})(c = exports.c || (exports.c = {}));

Some files were not shown because too many files have changed in this diff Show More