1 2 3 4 5 6 7 8 9 10 11 12
|
//// [tests/cases/compiler/parameterPropertyReferencingOtherParameter.ts] ////
=== parameterPropertyReferencingOtherParameter.ts ===
class Foo {
>Foo : Symbol(Foo, Decl(parameterPropertyReferencingOtherParameter.ts, 0, 0))
constructor(public x: number, public y: number = x) { }
>x : Symbol(Foo.x, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 16))
>y : Symbol(Foo.y, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 33))
>x : Symbol(x, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 16))
}
|