Created
April 4, 2017 03:22
-
-
Save omochi/2d6dc0d661958c9faef6e6b171369a8a to your computer and use it in GitHub Desktop.
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 Cat { | |
init() { | |
print("init") | |
} | |
deinit { | |
print("deinit") | |
} | |
} | |
for _ in [1, 2] { | |
let e0 = Cat() | |
let e1 = Cat() | |
for e in [e0, e1] { } | |
} |
Author
omochi
commented
Apr 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment