e.g. the following test
[<Fact>]
let ``general local lambda sprinting`` () =
let myFunc x y = if x = 0 && y = 0 then None else Some(x + y)
test <@ decompile <@ myFunc 0 1 @> = "myFunc 0 1" @>
fails with
Test 'DecompilationTests.general local lambda sprinting' failed:
decompile <@ <fun:myFunc@897> 0 1 @> = "myFunc 0 1"
"<fun:myFunc@897> 0 1" = "myFunc 0 1"
false
C:\Users\Stephen\Documents\Visual Studio 2010\Projects\Unquote\code\UnquoteTests\DecompilationTests.fs(898,0): at DecompilationTests.general local lambda sprinting()
Original issue reported on code.google.com by
stephen....@gmail.comon 11 Apr 2012 at 1:21