Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit f55af88

Browse files
KevinRansomnosami
authored andcommitted
Oops - I should have reviewed the original pr better ... sorry (dotnet#9881)
* Fix Package Scripting nuget package * Compose * Phillip suggested options should compose too
1 parent f36e6f4 commit f55af88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FSharp.Test.Utilities/Compiler.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ module rec Compiler =
173173

174174
let withOptions (options: string list) (cUnit: CompilationUnit) : CompilationUnit =
175175
match cUnit with
176-
| FS fs -> FS { fs with Options = options }
176+
| FS fs -> FS { fs with Options = fs.Options @ options }
177177
| _ -> failwith "withOptions is only supported n F#"
178178

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

184184
let asLibrary (cUnit: CompilationUnit) : CompilationUnit =

0 commit comments

Comments
 (0)