Commit e6a93b55 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.22.x' of git+ssh://github.com/cython/cython into 0.22.x

parents f84268ea b9186835
...@@ -1251,6 +1251,8 @@ class ModuleScope(Scope): ...@@ -1251,6 +1251,8 @@ class ModuleScope(Scope):
cname = name cname = name
else: else:
cname = self.mangle(Naming.func_prefix, name) cname = self.mangle(Naming.func_prefix, name)
if visibility == 'extern' and type.optional_arg_count:
error(pos, "Extern functions cannot have default arguments values.")
entry = self.lookup_here(name) entry = self.lookup_here(name)
if entry and entry.defined_in_pxd: if entry and entry.defined_in_pxd:
if entry.visibility != "private": if entry.visibility != "private":
......
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