2014-07-13 01:04:16 +02:00
|
|
|
//// [defaultIndexProps2.ts]
|
|
|
|
class Foo {
|
|
|
|
public v = "Yo";
|
|
|
|
}
|
|
|
|
|
|
|
|
var f = new Foo();
|
|
|
|
|
|
|
|
// WScript.Echo(f[0]);
|
|
|
|
|
|
|
|
var o = {v:"Yo2"};
|
|
|
|
|
|
|
|
// WScript.Echo(o[0]);
|
|
|
|
|
|
|
|
1[0];
|
|
|
|
var q = "s"[0];
|
|
|
|
|
|
|
|
|
|
|
|
//// [defaultIndexProps2.js]
|
|
|
|
var Foo = (function () {
|
|
|
|
function Foo() {
|
|
|
|
this.v = "Yo";
|
|
|
|
}
|
|
|
|
return Foo;
|
|
|
|
})();
|
|
|
|
var f = new Foo();
|
2014-08-12 00:54:12 +02:00
|
|
|
// WScript.Echo(f[0]);
|
2014-07-13 01:04:16 +02:00
|
|
|
var o = { v: "Yo2" };
|
2014-08-16 00:49:09 +02:00
|
|
|
// WScript.Echo(o[0]);
|
2014-07-13 01:04:16 +02:00
|
|
|
1[0];
|
|
|
|
var q = "s"[0];
|