First of all, kudos for the cool project! It's good to see other experiments with Go generics :)
Now, the error report.
While the default code in play.folang.org uses Box[string] and works fine, if I change it to use Box[S], where S is declared either type S string or type S = string, the playground gives the following errors:
First of all, kudos for the cool project! It's good to see other experiments with Go generics :)
Now, the error report.
While the default code in play.folang.org uses
Box[string]
and works fine, if I change it to useBox[S]
, where S is declared eithertype S string
ortype S = string
, the playground gives the following errors:In https://play.folang.org/p/jqI3lQwKMFH : using
Box[S]
withtype S string
prog.go:4:9: syntax error: unexpected go, expecting nameIn https://play.folang.org/p/M94uycdoV5n : using
Box[S]
withtype S = string
prog.go:10:10: undefined: Box__S