Skip to content

Commit ccaf439

Browse files
T-Grogithub-actions
authored andcommitted
showImmutableVersion
1 parent 477f057 commit ccaf439

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/fsharp/Compiler/Language/OptionalInteropTests.fs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ open Microsoft.CodeAnalysis
1111

1212
module OptionalInteropTests =
1313

14+
open System.Reflection
15+
16+
let showImmutableVersion () =
17+
let asm = typeof<System.Collections.Immutable.ImmutableArray>.Assembly
18+
printfn "Loaded System.Collections.Immutable version: %s" (asm.GetName().Version.ToString())
19+
1420
[<Theory>]
1521
[<InlineData("5.0")>]
1622
[<InlineData("preview")>]
1723
let ``C# method with an optional parameter and called with an option type should compile`` langVersion =
24+
showImmutableVersion()
1825
let csSrc =
1926
"""
2027
using Microsoft.FSharp.Core;

0 commit comments

Comments
 (0)