Add a nptr T type

This commit is contained in:
Nigel Tao committed 2018-07-15 17:10:03 +10:00
1 parent 15f2f42b77
commit 29eb64a0a4
11 files changed
+39 -27

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ func (g *gen) writeBuiltinCall(b *buffer, n *a.Expr, rp replacementPolicy, depth
switch recvTyp.Decorator() {
case 0:
// No-op.
case t.IDPtr:
case t.IDNptr, t.IDPtr:
// TODO: don't hard-code initialize.
if method.Ident() != g.tm.ByName("initialize") {
return errNoSuchBuiltin