Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func f<T: ExpressibleByIntegerLiteral>() -> T {
- return 1 // as T
- }
- let int: Int = f()
- let double: Double = f()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement