Uh oh!
There was an error while loading. Please reload this page.
typeof in quotations.fs now respects ByRef types - #3450
Conversation
forki
left a comment
There was a problem hiding this comment.
Shouldn't the remaining case still give that specific error message?
krauthaufen
commented
Aug 17, 2017
Shouldn't AddressOf contain one sub-expression only? |
dsyme
commented
Aug 17, 2017
@krauthaufen Could you add a test too please? See src\fsharp\FSharp.Core.Unittests |
KevinRansom
commented
Aug 29, 2017
@krauthaufen Hi, thanks for this PR, did you notice Don's comment? |
dsyme
commented
Oct 4, 2017
@krauthaufen could you add a test for this please? Many thanks |
krauthaufen
commented
Oct 4, 2017
Hi, sorry for the late response. i will look into it tomorrow. |
dsyme
commented
Oct 4, 2017
@krauthaufen Great! See |
- AddressOf now has a proper type (byref<'a>) - AddressOf can be used in Expr.Call (was an error) - calls containing AddressOf can be rebuilt using RebuildShapeCombination
krauthaufen
commented
Oct 5, 2017
@dsyme I just added a few tests checking that AddressOf can now be used as argument to Expr.Call(...), etc. |
When using
AddressOfin quotations typeof function simple threw an exception which makes it impossible to call methods using byref-arguments.Since there is a .NET-representation for byref-types why not use it?