Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
670e7f6c
Commit
670e7f6c
authored
Jul 22, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable overloading for callable C++ classes.
parent
25ba3870
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
670e7f6c
...
...
@@ -4678,8 +4678,6 @@ class SimpleCallNode(CallNode):
self
.
type
=
PyrexTypes
.
error_type
self
.
result_code
=
"<error>"
return
self
.
function
.
type
=
overloaded_entry
.
type
overloaded_entry
=
None
elif
hasattr
(
self
.
function
,
'entry'
):
overloaded_entry
=
self
.
function
.
entry
elif
(
isinstance
(
self
.
function
,
IndexNode
)
and
...
...
@@ -4703,13 +4701,14 @@ class SimpleCallNode(CallNode):
return
entry
.
used
=
True
if
not
func_type
.
is_cpp_class
:
self
.
function
.
entry
=
entry
self
.
function
.
type
=
entry
.
type
func_type
=
self
.
function_type
()
else
:
entry
=
None
func_type
=
self
.
function_type
()
if
not
(
func_type
.
is_cfunction
or
func_type
.
is_cpp_class
)
:
if
not
func_type
.
is_cfunction
:
error
(
self
.
pos
,
"Calling non-function type '%s'"
%
func_type
)
self
.
type
=
PyrexTypes
.
error_type
self
.
result_code
=
"<error>"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment