2015-02-07 04:32:19 +01:00
|
|
|
//// [ES5SymbolProperty2.ts]
|
|
|
|
module M {
|
|
|
|
var Symbol;
|
|
|
|
|
|
|
|
export class C {
|
|
|
|
[Symbol.iterator]() { }
|
|
|
|
}
|
|
|
|
(new C)[Symbol.iterator];
|
|
|
|
}
|
|
|
|
|
|
|
|
(new M.C)[Symbol.iterator];
|
|
|
|
|
|
|
|
//// [ES5SymbolProperty2.js]
|
|
|
|
var M;
|
|
|
|
(function (M) {
|
|
|
|
var Symbol;
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 06:38:53 +01:00
|
|
|
C.prototype[Symbol.iterator] = function () { };
|
2015-02-07 04:32:19 +01:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
M.C = C;
|
|
|
|
(new C)[Symbol.iterator];
|
|
|
|
})(M || (M = {}));
|
|
|
|
(new M.C)[Symbol.iterator];
|