Skip to content

Commit

Permalink
Add regression test for nameof type with generic parameters (dotnet#1…
Browse files Browse the repository at this point in the history
…6827)

Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
  • Loading branch information
nojaf and vzarytovskii authored Mar 25, 2024
1 parent 3350127 commit 8f24d2c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/FSharp.Compiler.ComponentTests/TypeChecks/Graph/Scenarios.fs
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,30 @@ let v = 2
module B
do ignore (match "" with | nameof X.Y.Z -> () | _ -> ())
"""
(set [| 0 |])
]
scenario
"nameof type with generic parameters"
[
sourceFile
"A.fs"
"""
namespace A
module B =
module C =
type D = class end
"""
Set.empty
sourceFile
"Z.fs"
"""
module Z
open System.Threading.Tasks
let _ = nameof Task<A.B.C.D>
"""
(set [| 0 |])
]
Expand Down

0 comments on commit 8f24d2c

Please sign in to comment.