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

Partialy applied symbolic function not decompiled correctly #86

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

Comments

@GoogleCodeExporter
Copy link

We note that the difference between this issue and 85 is that (+) is being 
considered a binary op while (~~~) a unary op.

> let (~~~) x y z = x - y - z;;

val ( ~~~ ) : int -> int -> int -> int

> <@ (~~~) 1 1 @>;;
val it : Quotations.Expr<(int -> int)> =
  Let (x, Value (1),
     Let (y, Value (1), Lambda (z, Call (None, op_LogicalNot, [x, y, z]))))
    {CustomAttributes = [NewTuple (Value ("DebugRange"),
          NewTuple (Value ("stdin"), Value (88), Value (4), Value (88),
                    Value (12)))];
     Raw = ...;
     Type = Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,System.Int32];}
> decompile <@ (~~~) 1 1 @>;;
val it : string = "(~~~~)"
> decompile <@ (~~~) 1 @>;;
val it : string = "(~~~~)"
> decompile <@ (~~~) @>;;
val it : string = "(~~~~)"
> decompile <@ (~~~) 1 1 1 @>;;
val it : string = "op_LogicalNot 1 1 1"

Original issue reported on code.google.com by stephen....@gmail.com on 23 Apr 2012 at 2:32

@GoogleCodeExporter
Copy link
Author

Original comment by stephen....@gmail.com on 29 Apr 2012 at 7:43

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by stephen....@gmail.com on 20 May 2012 at 4:23

  • Added labels: Milestone-Release2.2.0

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