Post

Replies

Boosts

Views

Activity

Reply to Execution was interrupted, reason: signal SIGABRT. The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
class Department {     var name: String     var courses: [Course]     init(name: String) {         self.name = name         self.courses = []     } } class Course {     var name: String     unowned var department: Department     unowned var nextCourse: Course?     init(name: String, in department: Department) {         self.name = name         self.department = department         self.nextCourse = nil     } } let firstCourse = Course(name: "Computer", in: Department(name: "CSE")) error: Execution was interrupted, reason: signal SIGABRT.
Dec ’21