-
Notifications
You must be signed in to change notification settings - Fork 839
Description
Repro steps
Provide the steps required to reproduce the problem:
gh repo clone dotnet/fsharpcd fsharpfor a in 1 2; do diff -u tests/FSharp.Compiler.ComponentTests/Conformance/PatternMatching/Expression/whenGuards0$a.fs tests/FSharp.Compiler.ComponentTests/Conformance/PatternMatching/Expression/whenGuardss0$a.fs; done|wc -l
Expected behavior
Some output which signifies why whenGuardss files exist -- they appear to be identical to whenGuards files.
Actual behavior
0
Known workarounds
Delete the whenGuardss files (whenGuardss01.fs and whenGuardss02.fs) and references to them.
This is a whenGuards reference:
fsharp/tests/FSharp.Compiler.ComponentTests/Conformance/PatternMatching/Expression/Expression.fs
Lines 98 to 105 in be6352d
| // This test was automatically generated (moved from FSharpQA suite - Conformance/PatternMatching/Expression) | |
| [<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"whenGuards01.fs"|])>] | |
| let ``Expression - whenGuards01_fs - --test:ErrorRanges`` compilation = | |
| compilation | |
| |> asFs | |
| |> withOptions ["--test:ErrorRanges"] | |
| |> typecheck | |
| |> shouldSucceed |
This is a whenGuardss reference:
fsharp/tests/FSharp.Compiler.ComponentTests/Conformance/PatternMatching/Expression/Expression.fs
Lines 116 to 123 in be6352d
| // This test was automatically generated (moved from FSharpQA suite - Conformance/PatternMatching/Expression) | |
| [<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"whenGuardss01.fs"|])>] | |
| let ``Expression - whenGuardss01_fs - --test:ErrorRanges`` compilation = | |
| compilation | |
| |> asFs | |
| |> withOptions ["--test:ErrorRanges"] | |
| |> typecheck | |
| |> shouldSucceed |
Related information
The files appear to be part of the original commit in this repository, so there isn't any history to explain the reasons they exist
https://github.com/dotnet/fsharp/commits/fb01e0a4858b3f0b24ee115664b4b3255485f268/tests/fsharpqa/Source/Conformance/PatternMatching/Expression/whenGuardss01.fs?browsing_rename_history=true&new_path=tests/FSharp.Compiler.ComponentTests/Conformance/PatternMatching/Expression/whenGuardss01.fs&original_branch=main
Metadata
Metadata
Assignees
Labels
Type
Projects
Status