summaryrefslogtreecommitdiff
path: root/tests/compile/ctypedef_public_class_T355.pyx
blob: ceb2d65e4c22c7bbebf5b9501556009959d35426 (plain)
1
2
3
4
5
6
7
8
9
10
# ticket: t355
# 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