Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftretain cycles and capture listsSingle-choice MCQ

Given this code, what happens at compile time and runtime?

struct Box { var handler: () -> Void = {} mutating func setup() { handler = { self.handler = {} } } }