for example, I have file "pkg/A/internal/A.go" that has code like shown 
below

```golang

package internal 

type AS[T any] struct { } 

func (s *AS[T]) helloLink() string { 

  return "hello" 

}

```


And I have another one file "pkg/B/B.go"
```golang
package B 
import ( _ "unsafe" _ "pkg/A/internel" ) 
type BS[T any] struct { } 
//go:linkname pkgHello pkg/A/internel.(*AS[T]).helloLink 
func pkgHello[T any](s *BS[T]) string 

```

when I try to run this code, it tells that " parameterized function is 
missing function body"

   1. I have set asm.s file in package B
   2. It works without generics declaration
   3. Ignore import path shown in code, it should be right

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/940e4e72-86c2-4fee-94b7-dbcf986dd96fn%40googlegroups.com.

Reply via email to