Given this:
type C<'T>() = class end
let name = nameof C<int, string, PhillipCarter>
The code compiles and name is given "C".
This should fail to compile, since C<int, string, PhillipCarter> is not valid.
Updated the issue :)
Thanks for this report. The fix is now part of the update to the preview feature at https://github.com/dotnet/fsharp/pull/8754
I'll close this for now since it's tracked in https://github.com/dotnet/fsharp/pull/8754
Most helpful comment
Updated the issue :)