In typecheck.go, type check was failing for expressions like `[2]int{0, 1}[0:]`.
```
cannot slice type [2]int
```
Fixes #914 .
12 lines
126 B
Go
12 lines
126 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
a := [2][2]int{{0, 1}, {2, 3}}
|
|
fmt.Println(a[0][0:])
|
|
}
|
|
|
|
// Output:
|
|
// [0 1]
|