Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompiler Bug: local lambdas captured by quotations are sprinted with mangled names #79

Closed
GoogleCodeExporter opened this issue Jun 21, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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.com on 11 Apr 2012 at 1:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant