Last active
November 8, 2017 11:07
-
-
Save Biacco42/4b43e054ce9e4bccb5ef76464cc1282a 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 Po { | |
var po: String | |
init(po: String) { | |
self.po = po | |
} | |
static func ponction() -> Po { | |
return Po(po: "Po is Po") | |
} | |
} | |
let po: Po = .ponction() | |
print(po.po) | |
// Example | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { | |
// ^^^^^ DispatchTime 型名が省略されている | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment