1
Vote

Optional Method Parameters

description

It appears that optional method parameters are not supported properly on objects added to the context. Consider the code below:

...
public void log(String what, String color = null) {

}
...

Calling that method with one parameter via script throws an argument mismatch exception. Optional parameters on methods should be recognized. It's been part of c# since 4.0.

comments

jesseest wrote Apr 28, 2014 at 5:47 PM

I agree with this, it should be something that is available.