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
func f() (string, bool) { return map[int]string{1:”hi”}[1] }
This should be an error according to the spec, but it actually works in go/types and
exp/ssa/interp, returning the intuitive result of (“hi”, true).
Though I quite like what we've invented, it ain't legal. :)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: