diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 3de58bd20..343b7a564 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1092,6 +1092,8 @@ class CompilerHolder(InterpreterObject): 'dependencies', }) def has_members_method(self, args, kwargs): + if len(args) < 2: + raise InterpreterException('Has_members needs at least two arguments.') check_stringlist(args) typename = args[0] membernames = args[1:]