Refactor GetCSharpStyleIndexedExtensionMembersForTyconRef: unify logic#16839
Refactor GetCSharpStyleIndexedExtensionMembersForTyconRef: unify logic#16839T-Gro merged 2 commits intodotnet:mainfrom
Conversation
|
psfinaki
left a comment
There was a problem hiding this comment.
Can you please point me out where this is tested? Just to be more confident about the refactoring :)
We tests are here https://github.com/dotnet/fsharp/blob/main/tests/FSharp.Compiler.ComponentTests/Language/ExtensionMethodTests.fs Edit: Implemented feature |
|
@psfinaki, the most important test is that this repository is completely built (including VisualFSharp), because, as the practice of my other PR (#16168) shows, the dotnet/fsharp project contains more interesting cases in its code than there are in tests. There are also tests for old C#-compatible extensions, for example, https://github.com/dotnet/fsharp/blob/main/tests/fsharp/Compiler/Language/StaticNameResolutionTests.fs and for new F# 8 |
|
Alright, yeah, thanks for the links :) |
Remove code duplicates, generalize check