interp: fix append a slice on binary slice

Fixes #1128.
This commit is contained in:
Marc Vertes
2021-06-15 14:34:08 +02:00
committed by GitHub
parent ab44c38298
commit db955e671f
4 changed files with 37 additions and 6 deletions

10
_test/issue-1128.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import "net"
func main() {
c := append(net.Buffers{}, []byte{})
println(len(c))
}
// Output: 1