EDIT 1: I know there are alternatives, such as telescoping, it was a purely educational issue.
I know this is true, but why is this so? It seems like something like this:
public class Foo{ private int bar; public void SetBar(int baz = ThatOtherClass.GetBaz(3)){ this.bar = baz; } }
The compiler can change the method to something like this:
public void SetBar(int baz){
Why not work, or would it be, but is it just a design decision?
source share