-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
class MockCommand_6 extends AbstractCommand
{
@Inject("bool")
@Optional
private var bool:Bool = true;
@Inject("iint")
@Optional
private var iint:Int = 1;
override public function execute():Void
{
if (!bool || iint != 1)
{
throw Error.Custom("MockCommand_6: invalid values: " + bool + " " + iint);
}
}
}
If I inject into MockCommand_6 without having mappings for "bool" and "iint", injector makes the to be null (for js). But in my opinion they should keep their default values
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels