Commit 905a14ba authored by Robert Bradshaw's avatar Robert Bradshaw

More template parameter inference.

parent 19d5dd91
......@@ -113,10 +113,7 @@ class BaseType(object):
http://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction
"""
if self == actual:
return {}
else:
return None
def __lt__(self, other):
"""
......
......@@ -37,11 +37,12 @@ def test_two_params(int x, int y):
def test_method(int x, int y):
"""
>>> test_method(5, 10)
((5, 10.0), (5.0, 10))
((5, 10.0), (5.0, 10), (5, 10), (5.0, 10))
"""
cdef A[int] a_int
cdef A[double] a_double
return a_int.method[float](x, y), a_double.method[int](x, y)
return (a_int.method[float](x, y), a_double.method[int](x, y),
a_int.method(x, y), a_double.method(x, y))
# return a_int.method[double](x, y), a_double.method[int](x, y)
def test_part_method(int x, int y):
......
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