Add tokens

This commit is contained in:
Nigel Tao committed 2020-02-11 12:02:58 +11:00
1 parent 7a142168be
commit 737e31ff3a
17 files changed
+498 -36

No files matched your search

+1 -1
View File
@@ -462,7 +462,7 @@ func (g *gen) writeFuncImplArgChecks(b *buffer, n *a.Func) error {
// TODO: Also check elements, for array-typed arguments.
switch {
case oTyp.IsIOType() || (oTyp.Decorator() == t.IDPtr):
case oTyp.IsIOTokenType() || (oTyp.Decorator() == t.IDPtr):
checks = append(checks, fmt.Sprintf("!%s%s", aPrefix, o.Name().Str(g.tm)))
case oTyp.IsRefined():