Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions tests/FSharp.Test.Utilities/Compiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ module rec Compiler =

let withOptions (options: string list) (cUnit: CompilationUnit) : CompilationUnit =
match cUnit with
| FS fs -> FS { fs with Options = options }
| FS fs -> FS { fs with Options = fs.Options @ options }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I thought, I've fixed that. Thanks.

| _ -> failwith "withOptions is only supported n F#"

let withPreview (cUnit: CompilationUnit) : CompilationUnit =
match cUnit with
| FS fs -> FS { fs with Options = [ "--langversion:preview" ] }
| FS fs -> FS { fs with Options = fs.Options @ [ "--langversion:preview" ] }
| _ -> failwith "withPreview is only supported in F#"

let asLibrary (cUnit: CompilationUnit) : CompilationUnit =
Expand Down