Skip to content

Commit 2fba40f

Browse files
committed
PS: Add a test demonstrating missing a variable.
1 parent 1e1e4c6 commit 2fba40f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$x = 42
2+
$x
3+
4+
[int]$y = 42
5+
$y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| test.ps1:1:1:1:2 | x | test.ps1:2:1:2:2 | x |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import powershell
2+
3+
query predicate variables(Variable v, VarReadAccess va) { va.getVariable() = v }

0 commit comments

Comments
 (0)