Created
July 22, 2017 18:18
-
-
Save efthemiosprime/f1ba6eb258ff8592f5237db241f677f7 to your computer and use it in GitHub Desktop.
what's wrong
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Employee { | |
var manager: Employee? | |
var reports: [Employee] = [] | |
} | |
let hulio = Employee() | |
hulio.reports = [Employee(), Employee(), Employee()] | |
hulio.reports.forEach{ $0.manager = hulio} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment