23 lines
432 B
TypeScript
23 lines
432 B
TypeScript
//// [parameterReferencesOtherParameter2.ts]
|
|
class Model {
|
|
public name: string;
|
|
}
|
|
|
|
class UI {
|
|
constructor(model: Model, foo = model.name)
|
|
{
|
|
}
|
|
}
|
|
|
|
//// [parameterReferencesOtherParameter2.js]
|
|
var Model = (function () {
|
|
function Model() {
|
|
}
|
|
return Model;
|
|
})();
|
|
var UI = (function () {
|
|
function UI(model, foo) {
|
|
if (foo === void 0) { foo = model.name; }
|
|
}
|
|
return UI;
|
|
})();
|