mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 06:00:38 +00:00
genbindings: block use of binding-reserved word 'ret'
This commit is contained in:
parent
45f3e8abed
commit
e3a1041031
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user