Skip to content

Commit 8f24d2c

Browse files
nojafvzarytovskii
andauthored
Add regression test for nameof type with generic parameters (#16827)
Co-authored-by: Vlad Zarytovskii <[email protected]>
1 parent 3350127 commit 8f24d2c

File tree

1 file changed

+24
-0
lines changed
  • tests/FSharp.Compiler.ComponentTests/TypeChecks/Graph

1 file changed

+24
-0
lines changed

tests/FSharp.Compiler.ComponentTests/TypeChecks/Graph/Scenarios.fs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,30 @@ let v = 2
937937
module B
938938
939939
do ignore (match "" with | nameof X.Y.Z -> () | _ -> ())
940+
"""
941+
(set [| 0 |])
942+
]
943+
scenario
944+
"nameof type with generic parameters"
945+
[
946+
sourceFile
947+
"A.fs"
948+
"""
949+
namespace A
950+
951+
module B =
952+
module C =
953+
type D = class end
954+
"""
955+
Set.empty
956+
sourceFile
957+
"Z.fs"
958+
"""
959+
module Z
960+
961+
open System.Threading.Tasks
962+
963+
let _ = nameof Task<A.B.C.D>
940964
"""
941965
(set [| 0 |])
942966
]

0 commit comments

Comments
 (0)