Skip to content

Commit 18ef04e

Browse files
committed
Add unit test for nested scenario.
1 parent 8e85538 commit 18ef04e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/ParallelTypeCheckingTests/Code/TrieApproach/DependencyResolution.fs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,28 @@ type A = { B : int }
943943
module Product.Feature
944944
945945
let f a = a.B
946+
"""
947+
(set [| 0 |])
948+
]
949+
scenario
950+
"Reference to property of static member from nested module is detected"
951+
[
952+
sourceFile
953+
"A.fs"
954+
"""
955+
module A
956+
957+
module B =
958+
type Person = {Name : string}
959+
type C =
960+
static member D: Person = failwith ""
961+
"""
962+
Set.empty
963+
sourceFile
964+
"B.fs"
965+
"""
966+
module B
967+
let person: string = A.B.C.D.Name
946968
"""
947969
(set [| 0 |])
948970
]

0 commit comments

Comments
 (0)