Add check for arguments of has_members.
Ensure that has_members has at least two arguments.
@@ -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:]
