mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We need to strip inout/lvalue before casting the second parameter's type to FunctionType. There were also some verification issues and the fact that we weren't allowing already-escaping closures to be passed to it (which is not useful, but shouldn't result in an error and really awful diagnostic). We can potentially look at diagnosing this with a warning at some point in the future. Fixes rdar://problem/32239354.
184 KiB
184 KiB