未验证 提交 db068a6e 编写于 作者: D dotnet bot 提交者: GitHub

Merge pull request #14423 from dotnet/merges/main-to-release/dev17.5

Merge main to release/dev17.5
......@@ -68,7 +68,7 @@ val f: x: 'a -> TFirstV_1<'a>
Assert.True(symbolUse.IsPrivateToFile))
}
[<Fact>]
// [<Fact>] This is a bug - https://github.com/dotnet/fsharp/issues/14419
let ``Private function, with signature file`` () =
SyntheticProject.Create(
{ sourceFile "First" [] with ExtraSource = "let private f3 x = x + 1" }
......@@ -76,4 +76,4 @@ val f: x: 'a -> TFirstV_1<'a>
checkFile "First" (fun (typeCheckResult: FSharpCheckFileResults) ->
let symbolUse = typeCheckResult.GetSymbolUseAtLocation(6, 14, "let private f3 x = x + 1", ["f3"]) |> Option.defaultWith (fun () -> failwith "no symbol use found")
Assert.False(symbolUse.IsPrivateToFile))
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册