Skip to content
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

Feather shows a warning "Constant is expected to be one of the following" for constants that are used as bitflags #874

Open
iampremo opened this issue Jul 31, 2023 · 1 comment
Labels
ide-bug Bugs with the GameMaker IDE import An issue imported from the old database

Comments

@iampremo
Copy link
Member

GM-7689

Certain constants can be used as bitflags and joined together using bitwise OR to make up a final value. In these cases Feather shows a warning, saying "Constant is expected to be one of the following":

!constants_bitflags_warning1.png|thumbnail!
!constants_bitflags_warning2.png|thumbnail!

In these cases, it can also be a bitwise combination of those constants and the end result will also be valid.

@JordOfTheFlies
Copy link

In 2024.11.0.179/226 (seriously, let us copy and paste this from the IDE, guys) constants of any form appear to give this warning for me. i.e. using constant.color as a argument type will give a warning still when fed a color or a macro corresponding to a color. So I don't think this related to bitflags, but that it is giving warnings regardless of how the constants are used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE import An issue imported from the old database
Projects
Status: No status
Development

No branches or pull requests

2 participants