-
Notifications
You must be signed in to change notification settings - Fork 831
typeof in quotations.fs now respects ByRef types #3450
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
Conversation
forki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the remaining case still give that specific error message?
|
Shouldn't AddressOf contain one sub-expression only? |
|
@krauthaufen Could you add a test too please? See src\fsharp\FSharp.Core.Unittests |
dsyme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested a test be added
|
@krauthaufen Hi, thanks for this PR, did you notice Don's comment? |
|
@krauthaufen could you add a test for this please? Many thanks |
|
Hi, sorry for the late response. i will look into it tomorrow. |
|
@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
|
@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?