diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-01-25 21:35:26 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-01-27 22:11:48 -0500 |
| commit | d9f55d774c6df52a8536114535d305841e96f105 (patch) | |
| tree | ea9a5d32f35197fcb4ea5a405ceebd3c95de34e3 /mesonbuild/interpreter/primitives/array.py | |
| parent | 1913a4246c6a0c0204e29e4957cafa937b251d01 (diff) | |
| download | meson-d9f55d774c6df52a8536114535d305841e96f105.tar.gz | |
add location data to various Feature checks
Diffstat (limited to 'mesonbuild/interpreter/primitives/array.py')
| -rw-r--r-- | mesonbuild/interpreter/primitives/array.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/primitives/array.py b/mesonbuild/interpreter/primitives/array.py index fb42d0d99..e48e1c230 100644 --- a/mesonbuild/interpreter/primitives/array.py +++ b/mesonbuild/interpreter/primitives/array.py @@ -94,7 +94,8 @@ class ArrayHolder(ObjectHolder[T.List[TYPE_var]], IterableObject): def op_plus(self, other: TYPE_var) -> T.List[TYPE_var]: if not isinstance(other, list): if not isinstance(self.current_node, PlusAssignmentNode): - FeatureNew.single_use('list.<plus>', '0.60.0', self.subproject, 'The right hand operand was not a list.') + FeatureNew.single_use('list.<plus>', '0.60.0', self.subproject, 'The right hand operand was not a list.', + location=self.current_node) other = [other] return self.held_object + other |
