package p
typeS[T1any, T2any] struct {
v1T1v2T2
}
typeS1struct {
S[byte, []byte] // ok
}
typeS2struct {
S[byte, []byte,] // not ok: trailing comma not accepted even though it is legal
}
leads to a syntax error when parsed with go/parser. In the playground, the program cannot be formatted (but it can be compiled and run because the compiler uses a different parser).
The text was updated successfully, but these errors were encountered:
leads to a syntax error when parsed with
go/parser
. In the playground, the program cannot be formatted (but it can be compiled and run because the compiler uses a different parser).The text was updated successfully, but these errors were encountered: