TypeScript/tests/cases/compiler/selfReferencesInFunctionParameters.ts
2014-07-12 17:30:19 -07:00

13 lines
192 B
TypeScript

function foo(x: number = x) {
}
function bar(x0 = "", x: number = x) {
}
class C {
constructor(x = 1, y = y) {
}
bar(a = "", b: string = b.toString()) {
}
}