27 lines
358 B
JavaScript
27 lines
358 B
JavaScript
//// [defaultIndexProps1.ts]
|
|
class Foo {
|
|
public v = "Yo";
|
|
}
|
|
|
|
var f = new Foo();
|
|
|
|
var q = f["v"];
|
|
|
|
var o = {v:"Yo2"};
|
|
|
|
var q2 = o["v"];
|
|
|
|
|
|
//// [defaultIndexProps1.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
this.v = "Yo";
|
|
}
|
|
return Foo;
|
|
})();
|
|
var f = new Foo();
|
|
var q = f["v"];
|
|
var o = {
|
|
v: "Yo2"
|
|
};
|
|
var q2 = o["v"];
|