You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TinyGo crashes when compiling a generic type alias, even when using GODEBUG=gotypesalias=1. Though I am not sure whether TinyGo supports generic type aliases correctly.
$ cat test.go
package main
import "fmt"
// Define a generic typetype Wrapper[T any] struct {
Value T
}
// Alias declaration with type parameter
type Alias[T any] = Wrapper[T]
func main() {
// Using the alias
var a Alias[int] = Alias[int]{Value: 42}
fmt.Println("a:", a.Value)
}
TinyGo crashes when compiling a generic type alias, even when using
GODEBUG=gotypesalias=1
. Though I am not sure whether TinyGo supports generic type aliases correctly.The text was updated successfully, but these errors were encountered: