dorba / blade

The core tools for Blade rich client development.
89 stars 14 forks source link

Constructor Overloading error with a static constructor #11

Closed Ventajou closed 12 years ago

Ventajou commented 12 years ago

I have a class with both a static and a regular constructor. The following error is thrown at build time: "Constructor overloading is not supported. Consider using optional parameters instead."

dorba commented 12 years ago

Fixed with commit e6c1cd1d4c9587daeb354c678d778a493acc8b2d

This is somewhat of a partial fix. There are still some edge cases that may not work like we expect. I need to write more test cases and come up with a better approach that works in all cases. In general, you can use static constructors now, and best practice is to put all your static initialization there.