awestlake87/helix

inheritance

Opened this issue · 0 comments

struct Parent
    int @a

    oper construct(int a):
        @a: a

struct Child
    extends Parent
    int @b
    
    oper construct(int a, int b):
        construct(this as *Parent, a)
        @b: b