13 lines
192 B
TypeScript
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()) {
|
|
}
|
|
} |