aboutsummaryrefslogtreecommitdiff
path: root/docs/refman/loaderpickle.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-06-14 20:36:50 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-06-14 23:12:09 -0400
commitf93f443a536c36b5a22284cb8d0bb276e766743c (patch)
tree3f96cf08d3d298d09ddf933818348e2316f47adb /docs/refman/loaderpickle.py
parentd558291abe9d851584e74f0154be819bc4baf207 (diff)
downloadmeson-f93f443a536c36b5a22284cb8d0bb276e766743c.zip
meson-f93f443a536c36b5a22284cb8d0bb276e766743c.tar.gz
meson-f93f443a536c36b5a22284cb8d0bb276e766743c.tar.bz2
detect and warn on non-commutative int/bool operations
an int only accepts operations on other ints, just like other primitive types only accept operations on values of the same type. But due to using isinstance in baseobjects "operator_call", an int primitive allowed operations on a bool, even though reversing the operator and having a bool perform operations on an int, would fail with a type error. Really, we should fail with a type error in both directions. But for stability reasons, make this a loud warning and break --fatal-meson-warnings builds.
Diffstat (limited to 'docs/refman/loaderpickle.py')
0 files changed, 0 insertions, 0 deletions