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
Xavier Thompson
cython
Commits
6e904633
Commit
6e904633
authored
Apr 18, 2020
by
da-woods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cpp_operators (handle type is None)
parent
f22704c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
6e904633
...
@@ -657,14 +657,14 @@ class ExprNode(Node):
...
@@ -657,14 +657,14 @@ class ExprNode(Node):
def
analyse_as_specialized_type
(
self
,
env
):
def
analyse_as_specialized_type
(
self
,
env
):
type
=
self
.
analyse_as_type
(
env
)
type
=
self
.
analyse_as_type
(
env
)
if
type
.
is_fused
and
env
.
fused_to_specific
:
if
type
and
type
.
is_fused
and
env
.
fused_to_specific
:
# while it would be nice to test "if entry.type in env.fused_to_specific"
# while it would be nice to test "if entry.type in env.fused_to_specific"
# rather than try/catch this doesn't work reliably (mainly for nested fused types)
# rather than try/catch this doesn't work reliably (mainly for nested fused types)
try
:
try
:
return
type
.
specialize
(
env
.
fused_to_specific
)
return
type
.
specialize
(
env
.
fused_to_specific
)
except
KeyError
:
except
KeyError
:
pass
pass
if
type
.
is_fused
:
if
type
and
type
.
is_fused
:
error
(
self
.
pos
,
"Type is not specific"
)
error
(
self
.
pos
,
"Type is not specific"
)
return
type
return
type
...
...
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