Skip to content

Instantly share code, notes, and snippets.

@banjun
Created March 3, 2018 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banjun/44b4d35c48efb6897cae048cc325ab0e to your computer and use it in GitHub Desktop.
Save banjun/44b4d35c48efb6897cae048cc325ab0e to your computer and use it in GitHub Desktop.
// inspection whether repdocuces or not, SR-2750
// devxoul/Then a.k.a. `.then`
// banjun/ikemen a.k.a. `※`
func testWithTypeAnnotation() {
let user = User().then {
$0. // success completion
}
}
func testWithTypeAnnotation() {
let user: User = User().then {
$0. // fail completion
}
}
func testWithTypeAnnotationIkemen() {
let user = User() ※ {
$0. // success completion
}
}
func testWithTypeAnnotationIkemen() {
let user: User = User() ※ {
$0. // success completion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment