Self referential Structs are possible in objective C. Eg:
typedef struct Sample {
struct Sample* first;
struct Sample* second;
struct Sample* third;
} SampleStruct;
The swift conversion looks something like
struct Sample {
var first: Sample?
var second: Sample?
var third: Sample?
}
typealias SampleStruct = Sample
But it throws a compiler error saying "Value type 'Sample' cannot have a stored property that references itself".
How do i convert the self referential struct to swift?