Last active
November 23, 2018 15:19
-
-
Save liorazi/d426f6721aafa4fc23ca6d6e701f1e78 to your computer and use it in GitHub Desktop.
Possible compiler bug in Swift 4.2
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
func foo(_ boo: String) { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { | |
self.goo() | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { //Swift 4.2 Compiler Error: Cannot invoke 'asyncAfter' with an argument list of type '(deadline: DispatchTime, @convention(block) () | |
self.bar(nil) | |
} | |
} | |
} | |
func bar(_ sender:Any) { | |
} | |
func goo() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment