On Tue, Jan 5, 2021 at 8:11 AM Brian Candler <[email protected]> wrote:
>
> I don't know if this is expected, but this (bad) program causes the go2go 
> playground to give "panic: assertion failed"
>
> https://go2goplay.golang.org/p/VH5SLJNxw3X
>
> - I think it's the compiler itself that's panicing, not the runtime (since it 
> doesn't get as far as the next line).

This is a bug in the type checker, which shouldn't panic.  Want to
open an issue?


> Aside: my general feeling so far is that the error messages given from go 
> programs which misapply generic syntax can be very unhelpful.  Here's one 
> example:
> https://go2goplay.golang.org/p/m9YUDBTWwpA
>
> Error given: "missing ',' in type argument list"
> Actual problem: a constraint was used in a place where it's not allowed

Here too issues will help.  Thanks.

Ian

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcU%3D3nVpx1vUBHyQox68N1x6yfALjad%2BP9oGUA3733Qzrw%40mail.gmail.com.

Reply via email to