Commit f51aab70 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Error message on method-with-ellipsis reification

parent a5c0f8bb
......@@ -2707,6 +2707,8 @@ class CppClassScope(Scope):
return wrapper_entry
def reify_method(self, entry):
if entry.type.has_varargs:
error(entry.pos, "Could not reify method with ellipsis (you can use optional arguments)")
# Create the reifying class
reified_name = "reified_" + entry.name
reified_cname = Naming.builtin_prefix + reified_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment