genbindings: block use of binding-reserved word 'ret'

This commit is contained in:
mappu 2024-08-25 15:32:08 +12:00
parent 45f3e8abed
commit e3a1041031

View File

@ -10,7 +10,8 @@ import (
func goReservedWord(s string) bool {
switch s {
case "default", "const", "func", "var", "type", "len", "new", "copy", "import", "range", "string", "map", "int", "select":
case "default", "const", "func", "var", "type", "len", "new", "copy", "import", "range", "string", "map", "int", "select",
"ret": // not a language-reserved word, but a binding-reserved word
return true
default:
return false