Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions