Avatar
Avatar
Iceman
@swift-main @swift-5.9.2 func f<each T>( _ value: repeat each T ) -> (repeat each T) { return (repeat each value) } func g<T>( _ value: T ) -> T { return value } let value: Int? = 2 f(value).unsafelyUnwrapped g(value).unsafelyUnwrapped (edited)
exit status: 1 with <stdin>:15:10: error: value of tuple type '(_: Int?)' has no member 'unsafelyUnwrapped' f(value).unsafelyUnwrapped ~~~~~~~~ ^~~~~~~~~~~~~~~~~ <stdin>:16:10: warning: expression of type 'Int' is unused g(value).unsafelyUnwrapped ~~~~~~~~~^~~~~~~~~~~~~~~~~ (edited)