Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xavier Thompson
cython
Commits
0fbb4898
Commit
0fbb4898
authored
10 years ago
by
Robert Bradshaw
Browse files
Options
Download
Email Patches
Plain Diff
More type inference tests.
parent
b3ee6b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+12
-0
No files found.
tests/run/type_inference.pyx
View file @
0fbb4898
...
...
@@ -507,6 +507,18 @@ def ptr_types():
cdef
int
[
1
]
b
b_ref
=
b
assert
typeof
(
b_ref
)
==
"int *"
,
typeof
(
b_ref
)
ptr
=
&
a
ptr
=
b
assert
typeof
(
ptr
)
==
"int *"
,
typeof
(
ptr
)
def
const_types
(
const
double
x
,
double
y
,
double
&
z
):
"""
>>> const_types(1, 1, 1)
"""
a
=
x
a
=
y
a
=
z
assert
typeof
(
a
)
==
"double"
,
typeof
(
a
)
@
infer_types
(
None
)
def
args_tuple_keywords
(
*
args
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
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