Closed 0x53A closed 5 years ago
Thanks for reporting. At first glance it looks more like an issue with decompiling the ValueWithName
quoted expression than with working with ReflectedDefinition quotations in general.
Also: cool idea for running "isomorphic" tests!
@0x53A hi - looking at this more closely in earnest now as part of https://github.com/SwensenSoftware/unquote/pull/146 ...
This is failing because of the new expression type WithValue
introduced by https://github.com/fsharp/fslang-design/blob/master/FSharp-4.0/AutoQuotationDesignAndSpec.md ... I'll work on supporting this, but in the mean time, I think you can just change your use of the ReflectedDefinition
attribute from ReflectedDefinition(true)
to ReflectedDefinition(false)
.
I want to run "isomorphic" unit tests between .NET and Fable.
Fable doesn't support Quotations, so I had the idea to use
ReflectedDefinitionAttribute
- that way I can write my code without the<@ @>
and it should work either as a expression or just as a normal parameter.But this seems to prouce a slightly different expression tree and then fails:
this expression should not be possible: WithValue (true, Value (true))