Junior — Senior
Detect defects in Swift code
livecode
Task condition
In this fragment of Swift code, a Person type is declared and an instance is created. The code does not compile due to an error in the definition of a recursive associated value. Find the error.
enum Person {
case none
case friend(person:Person)
}
let person = Person.friend(person: .none)