Skip to content

whenGuardss01.fs and whenGuardss02.fs look just like whenGuards01.fs and whenGuards02.fs #16184

@jsoref

Description

@jsoref

Repro steps

Provide the steps required to reproduce the problem:

  1. gh repo clone dotnet/fsharp
  2. cd fsharp
  3. for 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:

// 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:

// 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions