aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/ast/interpreter.py')
-rw-r--r--mesonbuild/ast/interpreter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py
index 8c2be37..7e4bc62 100644
--- a/mesonbuild/ast/interpreter.py
+++ b/mesonbuild/ast/interpreter.py
@@ -368,7 +368,8 @@ class AstInterpreter(InterpreterBase):
elif isinstance(src, bool):
result = self.bool_method_call(src, node.name, margs, mkwargs)
elif isinstance(src, int):
- result = self.int_method_call(src, node.name, margs, mkwargs)
+ from ..interpreter import Interpreter, IntegerHolder
+ result = IntegerHolder(src, T.cast(Interpreter, self)).method_call(node.name, margs, mkwargs)
elif isinstance(src, list):
result = self.array_method_call(src, node.name, margs, mkwargs)
elif isinstance(src, dict):