x/mobile: cannot use generic type demo.GenericTestData[T any] without instantiation #64486
Labels
generics
Issue is related to generics
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I have a piece of code:
func NewGenericTestData[T any](path string) *GenericTestData[T] {
return &GenericTestData[T]{
dataPath: strings.TrimRight(path, "/"),
}
}
type GenericTestData[T any] struct {
dataPath string
*CBaseInfo
Data T
}
When I run gomobile, I get an error: cannot use generic type demo.GenericTestData[T any] without instantiation
The text was updated successfully, but these errors were encountered: