Skip to content

Commit

Permalink
Oops - I should have reviewed the original pr better ... sorry (#9881)
Browse files Browse the repository at this point in the history
* Fix Package Scripting nuget package

* Compose

* Phillip suggested options should compose too
  • Loading branch information
KevinRansom authored Aug 6, 2020
1 parent a265343 commit 2b38aa7
Showing 1 changed file with 2 additions and 2 deletions.
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 }
| _ -> 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

0 comments on commit 2b38aa7

Please sign in to comment.