11 lines
208 B
Text
11 lines
208 B
Text
|
=== tests/cases/compiler/parameterPropertyReferencingOtherParameter.ts ===
|
||
|
class Foo {
|
||
|
>Foo : Foo
|
||
|
|
||
|
constructor(public x: number, public y: number = x) { }
|
||
|
>x : number
|
||
|
>y : number
|
||
|
>x : number
|
||
|
}
|
||
|
|