How to get super class memberBlocks using Swift Macros?

119 Views Asked by At

I'm trying to create swift macros for initializers for inherited classes i should have the members of the super class for super.init() parameters. how to get super class member blocks?

@Init
class Car1 {
    var test1: Int
    var test2: Int?
}

@Init
class Car1: Car2 {
    var test1: Int
    var test2: Int?
}

It will throw an error because the memberblocks(the attributes) of the superclass is missing

0

There are 0 best solutions below