cmd/go2go: Panic in type checker #42522
Comments
This is a bug in the type-checker in the prototype; but it works with the most-up-to-date implementation in
where cc: @findleyr |
@griesemer Ok cool! This issue can be closed as far as I'm concerned. I'll check twice before submitting anything from the go2go playground again. |
Please keep reporting. We will double-check both implementations - and even if we don't update the prototype, we'll add problem cases as tests to Also, I'll keep this open for now until we have verified that both the compiler and a future Thanks! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Presumably... I only tried it at go2goplay.golang.org
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to make this example compile. I don't claim that it's valid syntax, but it causes a panic in the typechecker, so I figured I'd raise it in any case.
https://go2goplay.golang.org/p/rC4sofqXuA5
What did you expect to see?
A compiler error (I think the use of
[S]
at line 16 is wrong, but don't quote me).What did you see instead?
The text was updated successfully, but these errors were encountered: