aboutsummaryrefslogtreecommitdiffstats
path: root/testdata/function_local.go
diff options
context:
space:
mode:
authorTeddy Wing2023-05-20 17:28:14 +0200
committerTeddy Wing2023-05-20 17:28:14 +0200
commitc064b2142aa81488e32be387393c494d98696a55 (patch)
tree3f8ce0d21eb464e283b300be7175f96016b459de /testdata/function_local.go
parentec33e063b86ae2c5208d856ee1a36259f342d5e0 (diff)
downloadgocapturedrefrace-c064b2142aa81488e32be387393c494d98696a55.tar.bz2
Fix panic when go statement calls non-function-literal
Diffstat (limited to 'testdata/function_local.go')
-rw-r--r--testdata/function_local.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/testdata/function_local.go b/testdata/function_local.go
index 18eeca5..6687889 100644
--- a/testdata/function_local.go
+++ b/testdata/function_local.go
@@ -28,3 +28,13 @@ func functionLocal() {
go funcLocal()
}
+
+type ValueMethodStruct struct {}
+
+func (s ValueMethodStruct) method() {}
+
+func ignoreValueMethods() {
+ s := ValueMethodStruct{}
+
+ go s.method()
+}