Created
March 3, 2018 01:21
-
-
Save banjun/44b4d35c48efb6897cae048cc325ab0e to your computer and use it in GitHub Desktop.
Analysis of SR-2750 https://bugs.swift.org/browse/SR-2750
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
// 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