Created
September 24, 2019 16:12
-
-
Save neilkimmett/3034571542a0ec76227c6f483c25343c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Class { | |
let id: Int | |
init(id: Int) { | |
self.id = id | |
} | |
} | |
class Schedule { | |
let `class`: Class | |
init(class: Class) { | |
self.class = `class` | |
} | |
} | |
let `class` = Class(id: 1) | |
let schedule = Schedule(class: `class`) | |
print(schedule.`class`.id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment