-
Notifications
You must be signed in to change notification settings - Fork 803
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
Correct body SynExpr of parsedData of Lambda when wildcards are involved. #11781
Conversation
This looks good. Some tests need updating, e.g. it's a good thing that the results no longer contain 2021-07-03T14:32:29.6342157Z Failed Test Project23 property [77 ms]
2021-07-03T14:32:29.6342682Z Error Message:
2021-07-03T14:32:29.6343239Z Expected: [(".ctor", ["member"; "ctor"]); ("get_StaticProperty", ["member"; "getter"]);
2021-07-03T14:32:29.6343815Z ("get_Property", ["member"; "getter"]); ("x", []);
2021-07-03T14:32:29.6344302Z ("get_Zero", ["member"; "extmem"; "getter"]);
2021-07-03T14:32:29.6344784Z ("get_Value", ["member"; "extmem"; "getter"]); ("x", []);
2021-07-03T14:32:29.6345476Z ("Value", ["member"; "prop"; "extmem"]);
2021-07-03T14:32:29.6346144Z ("set_Value", ["member"; "extmem"; "setter"]); ("x", []);
2021-07-03T14:32:29.6346935Z ("_arg1", ["compgen"]); ("Value", ["member"; "prop"; "extmem"])]
2021-07-03T14:32:29.6347728Z Actual: [(".ctor", ["member"; "ctor"]); ("get_StaticProperty", ["member"; "getter"]);
2021-07-03T14:32:29.6348396Z ("get_Property", ["member"; "getter"]); ("x", []);
2021-07-03T14:32:29.6348978Z ("get_Zero", ["member"; "extmem"; "getter"]);
2021-07-03T14:32:29.6349589Z ("get_Value", ["member"; "extmem"; "getter"]); ("x", []);
2021-07-03T14:32:29.6350138Z ("Value", ["member"; "prop"; "extmem"]);
2021-07-03T14:32:29.6350696Z ("set_Value", ["member"; "extmem"; "setter"]); ("x", []);
2021-07-03T14:32:29.6351231Z ("Value", ["member"; "prop"; "extmem"])]
2021-07-03T14:32:29.6351970Z Expected and actual are both <Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`2[System.String,Microsoft.FSharp.Collections.FSharpList`1[System.String]]]>
2021-07-03T14:32:29.6352850Z These four code generation tests also need updating:
On windows you can update them using
and waiting until the updates to the BSL are done. |
Hi Don, thanks for this feedback. Running
|
Are you running from an elevated/admin command prompt? |
Yes, more of the same
|
@nojaf How strange. I'll check on my machine, this may be a recent thing |
@nojaf I seem to be able to run I've pushed the updates to the baselines to your branch |
Many thanks Don! |
Hey @vzarytovskii could I get a review please? |
Thanks @nojaf ! |
This is related to fsprojects/fantomas#1806.
In Fantomas, we want to use
parsedData
of SynExpr.Lambda to print out the body expression of the lambda.This is currently wrapped in match expressions when wildcards are involved.
This PR tries to resolve this.