Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Able to remap DecisionTreeTest.Error (#10187)
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/FSharp.Compiler.ComponentTests/Language/RegressionTests.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. | ||
|
||
namespace FSharp.Compiler.ComponentTests.Language | ||
|
||
open Xunit | ||
open FSharp.Test.Utilities.Compiler | ||
|
||
module RegressionTests = | ||
|
||
[<Fact>] | ||
let ``No internal errors should be raised``() = | ||
FSharp """ | ||
namespace FSharpBug | ||
type TestItemSeq = | ||
static member Test1 item = item | ||
static member Test2 item = match item with Typo2 x -> x | ||
""" | ||
|> compile | ||
|> withErrorCodes [39] | ||
|> ignore |