summaryrefslogtreecommitdiff
path: root/tests/compile/ctypedef_public_class_T355.pyx
blob: 505f9d67faf2e79e019e2e473add4aa646141eb6 (plain)
1
2
3
4
5
6
7
8
9
10
# ticket: 355
# mode: compile

ctypedef public class Time [type MyTime_Type, object MyTimeObject]:
     def __init__(self, seconds):
         self.seconds = seconds

ctypedef public class Event [type MyEvent_Type, object MyEventObject]:
     def __init__(self, Time time):
         self.time = time