Fix anon records duplicate fields (#13142)
* Add unit test for duplicate fields Related issue: https://github.com/dotnet/fsharp/issues/11743 * Add new error code and message * Add a fix in TcAnonRecdExpr * Add another unit test - Update and copy syntax * Change error message to include field id * Add unit test for anon record type annotation * Add check for duplicate labels in type annotations * Improve error messages Also switch from errorR to error in SynType case (SynExpr already used error) Co-authored-by: NAdam <me@example.com>
Showing
想要评论请 注册 或 登录