From 2b38aa72e799182c049c15542bee9740e289fa57 Mon Sep 17 00:00:00 2001 From: "Kevin Ransom (msft)" Date: Thu, 6 Aug 2020 02:13:11 -0700 Subject: [PATCH] Oops - I should have reviewed the original pr better ... sorry (#9881) * Fix Package Scripting nuget package * Compose * Phillip suggested options should compose too --- tests/FSharp.Test.Utilities/Compiler.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FSharp.Test.Utilities/Compiler.fs b/tests/FSharp.Test.Utilities/Compiler.fs index 4e1850dbdc8..18676f5893d 100644 --- a/tests/FSharp.Test.Utilities/Compiler.fs +++ b/tests/FSharp.Test.Utilities/Compiler.fs @@ -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 } | _ -> 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 =