Created
July 9, 2013 12:08
-
-
Save kjnilsson/5956856 to your computer and use it in GitHub Desktop.
Why can't I deconstruct the tuple that returns a function that returns and async and a function?
This file contains 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
let test name = | |
fun (msg : obj) -> | |
async { | |
printfn name }, id | |
let f, f2 = Ipc.test "hello" | |
//gives: | |
//error FS0001: This expression was expected to have type | |
// 'a * 'b | |
//but here has type | |
// 'c -> Async<unit> * ('d -> 'd) | |
Thank you - forgot my parans! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
,
has higher precedence that->
. Do this instead:or this: