Skip to content

Commit e05e808

Browse files
committed
Add test
1 parent 69df3a7 commit e05e808

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/FSharp.Compiler.ComponentTests/FSharp.Compiler.ComponentTests.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
<Compile Include="OCamlCompat\OCamlCompat.fs" />
234234
<Compile Include="Miscellaneous\ListLiterals.fs" />
235235
<Compile Include="Miscellaneous\SemanticClassificationKeyBuilder.fs" />
236+
<Compile Include="Miscellaneous\FindUnsolvedTests.fs" />
236237
<Compile Include="Miscellaneous\XmlDoc.fs" />
237238
<Compile Include="Miscellaneous\FsharpSuiteMigrated.fs" />
238239
<Compile Include="Miscellaneous\MigratedCoreTests.fs" />
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
2+
3+
module FSharp.Compiler.ComponentTests.Miscellaneous.FindUnsolvedTests
4+
5+
open Xunit
6+
open FSharp.Test.Compiler
7+
8+
[<Fact>]
9+
let ``fallbackRange being set in FindUnsolved`` () =
10+
FSharp
11+
"""let f<'b> () : 'b = (let a = failwith "" in unbox a)"""
12+
|> typecheckResults
13+
|> ignore

0 commit comments

Comments
 (0)