Xcode playgrounds for this code - if in the project it prevents compilation.
I am trying to declare only a very simple structure:
struct Node<T> { let value: T var next: Node<T>? init(_ value: T) { self.value = value next = nil } }
If I do this on the Xcode playground, I get the following error message: The message with the playground service was unexpectedly interrupted.
If I declare this structure in a separate file in Xcode, the project cannot be compiled. All that I get in this case: Command failure due to signal: Segmentation error: 11.
Can someone help me? Is there a workaround? Any help is greatly appreciated.
source share