forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for multitargeting scenarios
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/fsharpqa/Source/MultiTargeting/InlineCoreResource_author.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Test | ||
|
||
let inline init1 n f = Array.init n f | ||
let init2 n f = Array.init n f |
12 changes: 12 additions & 0 deletions
12
tests/fsharpqa/Source/MultiTargeting/InlineCoreResource_consumer.fsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#if INTERACTIVE | ||
#r "author.dll" | ||
#else | ||
module Foo | ||
#endif | ||
|
||
Test.init1 4 (fun _ -> 4.) |> printfn "%A" | ||
Test.init2 4 (fun _ -> 4.) |> printfn "%A" | ||
|
||
#if INTERACTIVE | ||
#q ;; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters