-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler warning for ButtonGroup "triggered" field (MXML) #1681
Comments
The compiler is just trying to be helpful, since you might have meant to call the function. You can ignore this warning, since you're doing exactly what you mean to. I could probably come up with some ideas for different syntax that would get rid of the warning, but I'm not sure I'd call it "better". For instance, this might get rid of the warning because it's declared as a variable (or it might not... it's just an idea off the top of my head):
You may need to give this variable [Bindable] metadata to avoid a completely different warning, though. |
My IDE (FlashDevelop) halts the compile when it detects this warning, and I have to click "Build" a second time to get past the warning. I'd rather not disable warnings altogether, so that's why I'm looking for an alternative syntax or a way to disable that specific warning. I recall that IntelliJ supports meta tags to ignore compiler warnings, but I think these were IDE-specific rather than something build into the AS compiler. Would it be possible for you to add a metadata tag to the Feathers SDK compiler for ignoring this type of error? |
The best solution I could find was to remove the MXML and do the equivalent thing in AS3. |
Try this compiler option:
|
I have some code like this:
This code works as desired, but triggers a compiler warning:
Warning: Function value used where type * was expected. Possibly the parentheses () are missing after this function reference.
for the{save}
and{close}
parts.Is there a better syntax to use, or a metadata tag to tell the compiler to ignore the warning?
The text was updated successfully, but these errors were encountered: