Skip to content

Commit

Permalink
Add unit test for nested scenario.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 22, 2022
1 parent 8e85538 commit 18ef04e
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,28 @@ type A = { B : int }
module Product.Feature
let f a = a.B
"""
(set [| 0 |])
]
scenario
"Reference to property of static member from nested module is detected"
[
sourceFile
"A.fs"
"""
module A
module B =
type Person = {Name : string}
type C =
static member D: Person = failwith ""
"""
Set.empty
sourceFile
"B.fs"
"""
module B
let person: string = A.B.C.D.Name
"""
(set [| 0 |])
]
Expand Down

0 comments on commit 18ef04e

Please sign in to comment.