Error: Initializer of instance member variable 'x' cannot reference identifier 'y' declared in the constructor. #2548
Labels
By Design
Deprecated - use "Working as Intended" or "Design Limitation" instead
I got this error:
for this piece of code:
When I change parameter name in constructor to other name (for example
constructor(param2: ITest)
) it compiles.This behaviour was surprising for me. Is it a bug?
The text was updated successfully, but these errors were encountered: