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
3105a0ec
Commit
3105a0ec
authored
Jan 19, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend test
parent
2c07a95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+22
-0
No files found.
tests/run/type_inference.pyx
View file @
3105a0ec
...
...
@@ -647,3 +647,25 @@ def self_lookup(a):
def
bar
(
foo
):
qux
=
foo
quux
=
foo
[
qux
.
baz
]
cdef
enum
MyEnum
:
enum_x
=
1
enum_y
=
2
cdef
class
InferInProperties
:
"""
>>> InferInProperties().x
('double', 'unicode object', 'MyEnum')
"""
cdef
MyEnum
attr
def
__cinit__
(
self
):
self
.
attr
=
enum_x
property
x
:
def
__get__
(
self
):
a
=
1.0
b
=
u'abc'
c
=
self
.
attr
return
typeof
(
a
),
typeof
(
b
),
typeof
(
c
)
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