Commit 166685f9 authored by gsamain's avatar gsamain

Error message on method-with-ellipsis reification

parent f5e19dff
...@@ -2599,6 +2599,8 @@ class CppClassScope(Scope): ...@@ -2599,6 +2599,8 @@ class CppClassScope(Scope):
return wrapper_entry return wrapper_entry
def reify_method(self, 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 # Create the reifying class
reified_name = "reified_" + entry.name reified_name = "reified_" + entry.name
reified_cname = Naming.builtin_prefix + reified_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