You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, it works with member Foo() = (without _ or static). But to fix it we'll need to change expressions we use (likely), which may affect a bunch of other things.
The fix should be easy, however, might affect a bunch more things.
Activity
edgarfgp commentedon Nov 1, 2023
This will be great to fix too :)
vzarytovskii commentedon Nov 1, 2023
Well, it works with
member Foo() =(without _ or static). But to fix it we'll need to change expressions we use (likely), which may affect a bunch of other things.The fix should be easy, however, might affect a bunch more things.
vzarytovskii commentedon Nov 1, 2023
Nvm it's irrelevant issue, since static method implementation doesn't make much sense in object expressions, can't access it from instance.
0101 commentedon Nov 1, 2023
Well it still shouldn't cause an internal exception when someone writes it, rather give a proper diagnostic.
edgarfgp commentedon Nov 1, 2023
Agreed. We can add a similar diagnostic that https://github.com/dotnet/fsharp/pull/14555/files. Happy to help with this :)
vzarytovskii commentedon Nov 1, 2023
Only in debug = we don't care.
vzarytovskii commentedon Nov 1, 2023
I actually believe in release it'll be a proper diagnostic.
edgarfgp commentedon Nov 1, 2023
Just tried :
dotnet run -c Release
Program.fs(19,27): error FS0073: internal error: unexpected member binding ConsoleApp1.fsproj]
vzarytovskii commentedon Nov 1, 2023
Hm, I swear I tested it just before leaving the office and it was telling me something about unexpected leyword or something.
Alright then, we should just provide something meaningful.
edgarfgp commentedon Nov 10, 2023
Reopening this to provide a meaningful error message ?
edgarfgp commentedon Nov 10, 2023
Will raise a PR to fix this :)