From 06ed7801b5917d59258b25812347736a9992e6c6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 15 May 2023 02:31:56 +0200 Subject: testdata/simple.go: Add a local variable in closure We want to ignore local variables. --- testdata/simple.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testdata/simple.go b/testdata/simple.go index dd9f74e..a039f49 100644 --- a/testdata/simple.go +++ b/testdata/simple.go @@ -11,5 +11,8 @@ func main() { if capturedReference == 1 { return } + + newVar := 0 + newVar += 1 }() } -- cgit v1.2.3