From c064b2142aa81488e32be387393c494d98696a55 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 May 2023 17:28:14 +0200 Subject: Fix panic when go statement calls non-function-literal --- testdata/function_local.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testdata') 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() +} -- cgit v1.2.3