Avatar
exit status: 1 with stderr:<stdin>:4:1: error: ambiguous use of 'foo' foo(bar) ^ <stdin>:1:6: note: found this candidate func foo<T>(_ f: T) { print(1) } ^ <stdin>:2:6: note: found this candidate func foo<T>(_ f: () -> T) { print(2) } ^