Visitar URL original
Add regression test: #6929, Literal bindings preserve units of measure by T-Gro · Pull Request #19463 · dotnet/fsharp · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: use local shouldSucceed wrapper instead of redundant pipeline
The test was calling asLibrary |> typecheck |> shouldSucceed, but the local
shouldSucceed function (which already does asLibrary/typecheck) was shadowing
FSharp.Test.Compiler.shouldSucceed, causing a type mismatch (FS0001).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
T-Gro and Copilot committed Mar 24, 2026
commit de6d0ca116208ba6b2fa82bd85e3021481eb1f73
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,4 @@ let a = pi
let f (x: float<rad>) = x
let _ = f a
"""
|> asLibrary
|> typecheck
|> shouldSucceed
Loading