mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-86896 Magic constant doesn't understand bit flag constants
This commit is contained in:
@@ -244,4 +244,16 @@ public class X {
|
||||
super.f(x);
|
||||
}
|
||||
}
|
||||
|
||||
void plusSupportedInFlags(@MagicConstant(flags ={Const.X, Const.Y, Const.Z}) int x) {
|
||||
////////////// GOOD
|
||||
plusSupportedInFlags(Const.X + Const.Y);
|
||||
plusSupportedInFlags(Const.Z + Const.X + Const.Y);
|
||||
plusSupportedInFlags(Const.Z + (Const.X + Const.Y));
|
||||
|
||||
int ix = Const.X + Const.Y;
|
||||
plusSupportedInFlags(ix);
|
||||
plusSupportedInFlags(0);
|
||||
plusSupportedInFlags(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user