Closed JimmyJune closed 11 years ago
Hi Jimmy, currently we've decided not to support constructor overloading in Blade. This is rooted in the fact that JavaScript itself doesn't support overloading. This means any class may only have only 1 constructor. This applies to partial classes as well. Another alternative may be to use initializers, for example:
var foo = new Foo { A = a, B = b };
Thanks for trying out Blade! And let us know if you have any other questions.
I use a partial class in my project. there r two Constructors in this class.when i build it,the error is "Constructor overloading is not supported. Consider using optional parameters instead." i want to know if this is a bug or not? ps:when i commented one constructor,the error is gone.