Commit 5f7de216 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.22.x'

parents 9ce78503 853553c7
...@@ -1267,6 +1267,8 @@ class ModuleScope(Scope): ...@@ -1267,6 +1267,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