Commit 3105a0ec authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent 2c07a95a
......@@ -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)
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