Created
January 16, 2019 03:04
-
-
Save LucianoPAlmeida/221e335fbc35b774e178d417d4e8a100 to your computer and use it in GitHub Desktop.
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
@_semantics("optimize.sil.specialize.generic.never") | |
func increment<T: BinaryInteger>(_ t: T) -> T { | |
let incremented = t + 1 | |
return incremented | |
} | |
var i: Int = 1 | |
i = increment(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment