Skip to content

Commit

Permalink
missed a case
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Feb 10, 2025
1 parent 9778e1a commit e93d85f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/FSharp.Test.Utilities/CompilerAssert.fs
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,11 @@ Updated automatically, please check diffs in your pull request, changes must be
Assert.Empty(typeCheckResults.Diagnostics)

static member PassWithOptions options (source: string) =
let defaultOptions = defaultProjectOptions TargetFramework.Current
let path = uniqueName ".fs"
let defaultOptions = defaultProjectOptionsForFilePath path TargetFramework.Current
let options = { defaultOptions with OtherOptions = Array.append options defaultOptions.OtherOptions}

let parseResults, fileAnswer = checker.ParseAndCheckFileInProject(uniqueName ".fs", 0, SourceText.ofString source, options) |> Async.RunImmediate
let parseResults, fileAnswer = checker.ParseAndCheckFileInProject(path, 0, SourceText.ofString source, options) |> Async.RunImmediate

Assert.Empty(parseResults.Diagnostics)

Expand Down

0 comments on commit e93d85f

Please sign in to comment.