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
What steps will reproduce the problem?
1. Have an invalid program (does not compile):
package main // http://play.golang.org/p/s7Xg5T3zf4
func main() {
_ = []int{}[0:0:] // <- missing mandatory max
}
2. Click the "Format" button.
3. Click the "Run" button
What is the expected output?
prog.go:4: final index required in 3-index slice
[process exited with non-zero status]
What do you see instead?
[no output]
Which compiler are you using (5g, 6g, 8g, gccgo)?
N/A
Which operating system are you using?
N/A
Which version are you using? (run 'go version')
N/A
Please provide any additional information below.
The semantics of [l:h] and [l:h:m] differs enough to possibly get any/undefined behavior
from the new "valid" code.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: